summaryrefslogtreecommitdiff
path: root/Lib/binhex.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-01-04 23:22:44 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-01-04 23:22:44 +0000
commitb9d4963a989accce30234b7b74bce874c0142209 (patch)
tree63fa25095a756b9def7c84cf7eb88d68c2412e29 /Lib/binhex.py
parentb9c3ed4f82d3551c9906da55ddb8059ac3b5ce94 (diff)
downloadcpython-git-b9d4963a989accce30234b7b74bce874c0142209.tar.gz
Issue #7092: Fix the DeprecationWarnings emitted by the standard library
when using the -3 flag. Patch by Florent Xicluna.
Diffstat (limited to 'Lib/binhex.py')
-rw-r--r--Lib/binhex.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/binhex.py b/Lib/binhex.py
index 9059880e24..bd4e8b3015 100644
--- a/Lib/binhex.py
+++ b/Lib/binhex.py
@@ -170,7 +170,8 @@ class _Rlecoderengine:
del self.ofp
class BinHex:
- def __init__(self, (name, finfo, dlen, rlen), ofp):
+ def __init__(self, name_finfo_dlen_rlen, ofp):
+ name, finfo, dlen, rlen = name_finfo_dlen_rlen
if type(ofp) == type(''):
ofname = ofp
ofp = open(ofname, 'w')