diff options
author | Santo Cariotti <sancn@live.com> | 2017-08-22 11:07:17 +0200 |
---|---|---|
committer | Santo Cariotti <sancn@live.com> | 2017-08-22 11:07:17 +0200 |
commit | f335c2298e2f4051eaa199457c315ee95e2df1a0 (patch) | |
tree | 809aa22033ae2daf4c9dfd7e4b93d8e433598eec | |
parent | a9734c6146b6588244406578930cd4f0a061ad4c (diff) |
set name
-rw-r--r-- | lib/.commands.py.swp | bin | 16384 -> 16384 bytes | |||
-rw-r--r-- | lib/commands.py | 3 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/.commands.py.swp b/lib/.commands.py.swp Binary files differindex d80ed53..9ca6f3b 100644 --- a/lib/.commands.py.swp +++ b/lib/.commands.py.swp diff --git a/lib/commands.py b/lib/commands.py index ced0f3c..10c89fb 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -19,7 +19,8 @@ class Commands(object): self.user = cmd[2] - r.set('user', self.user) #change name of user + with open('/tmp/stout', 'wb') as fout: + fout.write(cmd[2].encode('utf-8')) print('Ok') elif cmd[1] is not ListCommands.commands['set']: |