summaryrefslogtreecommitdiff
path: root/Lib/binhex.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-24 21:18:41 +0000
committerGuido van Rossum <guido@python.org>1997-12-24 21:18:41 +0000
commit00f9fea288baed5a37e3866b492185b5045d30d4 (patch)
tree8ecf28e2d8907d52e18f10a66e582d5d3bda92d7 /Lib/binhex.py
parentb9b50eb7e09ec1b28e8549c2c90d7ed5748b3173 (diff)
downloadcpython-git-00f9fea288baed5a37e3866b492185b5045d30d4.tar.gz
Use string.replace instead of regsub.[g]sub.
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 7c22c4e0c7..4693443307 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: