Skip to content

Commit aec77f0

Browse files
Remove unused regexes
1 parent 8dc51e7 commit aec77f0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/wsgiref/handlers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
1717
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
1818

19-
_name_disallowed_re = re.compile(r'[\x00-\x1F\x7F]')
20-
_value_disallowed_re = re.compile(r'[\x00-\x08\x0A-\x1F\x7F]')
21-
2219
def format_date_time(timestamp):
2320
year, month, day, hh, mm, ss, wd, y, z = time.gmtime(timestamp)
2421
return "%s, %02d %3s %4d %02d:%02d:%02d GMT" % (

0 commit comments

Comments
 (0)