diff options
author | Guido van Rossum <guido@python.org> | 1997-12-24 21:18:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-24 21:18:41 (GMT) |
commit | 00f9fea288baed5a37e3866b492185b5045d30d4 (patch) | |
tree | 8ecf28e2d8907d52e18f10a66e582d5d3bda92d7 /Lib/binhex.py | |
parent | b9b50eb7e09ec1b28e8549c2c90d7ed5748b3173 (diff) | |
download | cpython-00f9fea288baed5a37e3866b492185b5045d30d4.zip cpython-00f9fea288baed5a37e3866b492185b5045d30d4.tar.gz cpython-00f9fea288baed5a37e3866b492185b5045d30d4.tar.bz2 |
Use string.replace instead of regsub.[g]sub.
Diffstat (limited to 'Lib/binhex.py')
-rw-r--r-- | Lib/binhex.py | 3 |
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: |