fixed TypeError: must be str, not bytes with python3

This commit is contained in:
ivan 2018-04-22 18:10:22 +03:00
parent 32013bdb8d
commit b48081be65
3 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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'],

View File

@ -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