mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use string.replace instead of regsub.[g]sub.
This commit is contained in:
parent
b9b50eb7e0
commit
00f9fea288
5 changed files with 13 additions and 17 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue