Incompatiblity with Python 2.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-distutils-extra |
New
|
Undecided
|
Unassigned |
Bug Description
python-
--- DistUtilsExtra/
+++ DistUtilsExtra/
@@ -104,11 +104,11 @@
enc = locale.
for f in sorted(src):
# ensure that we can always print the file name
- if(sys.
+ if(sys.
# hack to make this work with Python 2
- f_loc = f.decode('ascii', errors='ignore')
+ f_loc = f.decode('ascii', 'ignore')
else:
- f_loc = f.encode(enc, errors=
+ f_loc = f.encode(enc, 'replace'
print (' ' + f_loc)
#
@@ -387,7 +387,7 @@
with open(file, 'rb') as f:
# send binary blob for python2, otherwise sending an unicode object with
# "encoding" directive makes ast triggering an exception in python2
- if(sys.
+ if(sys.
else: