##// END OF EJS Templates
py3: suppress DeprecationWarning about deprecated base64 module aliases...
Manuel Jacob -
r45494:de7bdb0e stable
parent child Browse files
Show More
@@ -84,9 +84,17 b' def shlexer(data=None, filepath=None, wo'
84 return l
84 return l
85
85
86
86
87 if pycompat.ispy3:
88 base64_encodebytes = base64.encodebytes
89 base64_decodebytes = base64.decodebytes
90 else:
91 base64_encodebytes = base64.encodestring
92 base64_decodebytes = base64.decodestring
93
94
87 def encodeargs(args):
95 def encodeargs(args):
88 def encodearg(s):
96 def encodearg(s):
89 lines = base64.encodestring(s)
97 lines = base64_encodebytes(s)
90 lines = [l.splitlines()[0] for l in pycompat.iterbytestr(lines)]
98 lines = [l.splitlines()[0] for l in pycompat.iterbytestr(lines)]
91 return b''.join(lines)
99 return b''.join(lines)
92
100
@@ -95,7 +103,7 b' def encodeargs(args):'
95
103
96
104
97 def decodeargs(s):
105 def decodeargs(s):
98 s = base64.decodestring(s)
106 s = base64_decodebytes(s)
99 return pickle.loads(s)
107 return pickle.loads(s)
100
108
101
109
General Comments 0
You need to be logged in to leave comments. Login now