diff options
author | Marco Capitani <m.capitani@nextworks.it> | 2017-05-10 17:43:28 +0200 |
---|---|---|
committer | Marco Capitani <m.capitani@nextworks.it> | 2017-05-10 17:43:28 +0200 |
commit | 7bab86ff1683f32d739f1da9565f83bef5ff7e3b (patch) | |
tree | 3257830c593a4cc1a95ba4f987ff4f3978328b10 /rumba/prototypes/enroll.py | |
parent | da965f80da37c2b775e1e62e469589a3be05da30 (diff) | |
download | rumba-7bab86ff1683f32d739f1da9565f83bef5ff7e3b.tar.gz rumba-7bab86ff1683f32d739f1da9565f83bef5ff7e3b.zip |
jfed-irati small fixes for compatibility
Diffstat (limited to 'rumba/prototypes/enroll.py')
-rwxr-xr-x | rumba/prototypes/enroll.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rumba/prototypes/enroll.py b/rumba/prototypes/enroll.py index 458736a..99b49a6 100755 --- a/rumba/prototypes/enroll.py +++ b/rumba/prototypes/enroll.py @@ -78,8 +78,8 @@ if connected: get_response(s) # Send the IPCP list command - cmd = 'list-ipcps\n' - s.sendall(bytes(cmd, 'ascii')) + cmd = u'list-ipcps\n' + s.sendall(cmd.encode('ascii')) # Get the list of IPCPs and parse it to look for the enroller ID print('Looking up identifier for IPCP %s' % args.enrollee_name) @@ -98,11 +98,11 @@ if connected: raise Exception() # Send the enroll command - cmd = 'enroll-to-dif %s %s %s %s 1\n' \ + cmd = u'enroll-to-dif %s %s %s %s 1\n' \ % (enrollee_id, args.dif, args.lower_dif, args.enroller_name) print(cmd) - s.sendall(bytes(cmd, 'ascii')) + s.sendall(cmd.encode('ascii')) # Get the enroll command answer lines = get_response(s) |