fixed TypeError: must be str, not bytes with python3
This commit is contained in:
parent
32013bdb8d
commit
b48081be65
|
@ -26,7 +26,7 @@ sshch -h
|
|||
- If you want to use unsafe 'password' feature you must install 'sshpass' first.
|
||||
- If you want to use bash autocompletion function with sshch, copy autocompletion script to /etc/bash_completion.d/:
|
||||
```
|
||||
sudo cp sshch_bash_completion.sh /etc/bash_completion.d/sshch
|
||||
sudo cp completion/sshch_bash_completion.sh /etc/bash_completion.d/sshch
|
||||
```
|
||||
(changes will come into effect with new bash session)
|
||||
- If you want to use zsh autocompletion:
|
||||
|
|
2
setup.py
2
setup.py
|
@ -10,7 +10,7 @@ def main():
|
|||
url='https://github.com/zlaxy/sshch/',
|
||||
description='Ssh connection manager',
|
||||
license='DWTWL 2.55',
|
||||
version='0.997',
|
||||
version='0.998',
|
||||
py_modules=['sshch'],
|
||||
scripts=['sshch/sshch'],
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ import curses
|
|||
from curses import textpad, panel
|
||||
|
||||
# https://github.com/zlaxy/sshch
|
||||
version = "0.997"
|
||||
version = "0.998"
|
||||
# path to conf file, default: ~/.config/sshch.conf
|
||||
conf_file = path.expanduser("~") + '/.config/sshch.conf'
|
||||
# expand groups by default
|
||||
|
@ -327,7 +327,7 @@ def CursesPanel(screen, h, w, y, x, text,
|
|||
position = position - 1
|
||||
hidden_password = hidden_password[0:-1]
|
||||
if keych > 31 and keych < 127:
|
||||
hidden_password += curses.keyname(keych)
|
||||
hidden_password += curses.keyname(keych).decode('utf-8')
|
||||
sub_window.addstr(1, position, "*", text_colorpair)
|
||||
if position < w - 4:
|
||||
position += 1
|
||||
|
|
Loading…
Reference in New Issue