summaryrefslogtreecommitdiffstats
path: root/Lib/binhex.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/binhex.py')
-rw-r--r--Lib/binhex.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/binhex.py b/Lib/binhex.py
index 7c22c4e..4693443 100644
--- a/Lib/binhex.py
+++ b/Lib/binhex.py
@@ -76,7 +76,6 @@ else:
#
# Glue code for non-macintosh useage
#
- import regsub
class FInfo:
def __init__(self):
@@ -99,7 +98,7 @@ else:
dsize = fp.tell()
fp.close()
dir, file = os.path.split(name)
- file = regsub.sub(':', '-', file)
+ file = string.replace(file, ':', '-', 1)
return file, finfo, dsize, 0
class openrsrc: