Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit 84222eb

Browse files
author
mpgn
committed
Fix bytes error on gpp_autologin and gpp_password modules
1 parent a13ec6c commit 84222eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cme/modules/gpp_autologin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import xml.etree.ElementTree as ET
2-
from io import StringIO
2+
from io import BytesIO
33

44
class CMEModule:
55
'''
@@ -30,7 +30,7 @@ def on_login(self, context, connection):
3030
for path in paths:
3131
context.log.info('Found {}'.format(path))
3232

33-
buf = StringIO()
33+
buf = BytesIO()
3434
connection.conn.getFile('SYSVOL', path, buf.write)
3535
xml = ET.fromstring(buf.getvalue())
3636

cme/modules/gpp_password.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from Cryptodome.Cipher import AES
33
from base64 import b64decode
44
from binascii import unhexlify
5-
from io import StringIO
5+
from io import BytesIO
66

77
class CMEModule:
88
'''
@@ -33,7 +33,7 @@ def on_login(self, context, connection):
3333
for path in paths:
3434
context.log.info('Found {}'.format(path))
3535

36-
buf = StringIO()
36+
buf = BytesIO()
3737
connection.conn.getFile('SYSVOL', path, buf.write)
3838
xml = ET.fromstring(buf.getvalue())
3939

0 commit comments

Comments
 (0)