summaryrefslogtreecommitdiffstats
path: root/Demo/scripts/ftpstats.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/scripts/ftpstats.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/scripts/ftpstats.py')
-rwxr-xr-xDemo/scripts/ftpstats.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/scripts/ftpstats.py b/Demo/scripts/ftpstats.py
index b37a58d..5c1599e 100755
--- a/Demo/scripts/ftpstats.py
+++ b/Demo/scripts/ftpstats.py
@@ -13,12 +13,12 @@
import os
import sys
-import regex
+import re
import string
import getopt
-pat = '^\([a-zA-Z0-9 :]*\)!\(.*\)!\(.*\)!\([<>].*\)!\([0-9]+\)!\([0-9]+\)$'
-prog = regex.compile(pat)
+pat = '^([a-zA-Z0-9 :]*)!(.*)!(.*)!([<>].*)!([0-9]+)!([0-9]+)$'
+prog = re.compile(pat)
def main():
maxitems = 25