summaryrefslogtreecommitdiffstats
path: root/Demo/pdist/rcslib.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-16 06:50:13 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-16 06:50:13 (GMT)
commit10be10cbe72cc0cc0d05b2901f6857fdbb343894 (patch)
tree187aa5d7ae3a798239453331f1af23a14c6fce29 /Demo/pdist/rcslib.py
parentefbeaef1c1732ddb8d7d6d71847631094958bc89 (diff)
downloadcpython-10be10cbe72cc0cc0d05b2901f6857fdbb343894.zip
cpython-10be10cbe72cc0cc0d05b2901f6857fdbb343894.tar.gz
cpython-10be10cbe72cc0cc0d05b2901f6857fdbb343894.tar.bz2
Remove regsub, reconvert, regex, regex_syntax and everything under lib-old.
Diffstat (limited to 'Demo/pdist/rcslib.py')
-rwxr-xr-xDemo/pdist/rcslib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/pdist/rcslib.py b/Demo/pdist/rcslib.py
index d5f7b65..3e63869 100755
--- a/Demo/pdist/rcslib.py
+++ b/Demo/pdist/rcslib.py
@@ -8,7 +8,7 @@ files and (possibly) corresponding work files.
import fnmatch
import os
-import regsub
+import re
import string
import tempfile
@@ -150,7 +150,7 @@ class RCS:
cmd = 'ci %s%s -t%s %s %s' % \
(lockflag, rev, f.name, otherflags, name)
else:
- message = regsub.gsub('\([\\"$`]\)', '\\\\\\1', message)
+ message = re.sub(r'([\"$`])', r'\\\1', message)
cmd = 'ci %s%s -m"%s" %s %s' % \
(lockflag, rev, message, otherflags, name)
return self._system(cmd)