Ticket #313 (new defect)
Opened 3 years ago
copydir.py class LaxTemplate fails on python 2.6
| Reported by: | cfarrell | Owned by: | ianb |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4.1 |
| Component: | paste | Version: | svn-trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
cfarrell@paddy:~/PasteScript-1.6.2/paste/script> python copydir.py Traceback (most recent call last):
File "copydir.py", line 398, in <module>
class LaxTemplate?(string.Template):
File "/usr/lib/python2.6/string.py", line 119, in init
cls.pattern = _re.compile(pattern, _re.IGNORECASE | _re.VERBOSE)
File "/usr/lib/python2.6/re.py", line 188, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.6/re.py", line 236, in _compile
raise ValueError?('Cannot process flags argument with a compiled pattern')
ValueError?: Cannot process flags argument with a compiled pattern
This first became evident when I used tg-admin in turbogears under 2.6 - the same error msg was returned.
If I comment out everything under class LaxTemplate?(), and simply add a 'pass' instead, both python copydir.py and tg-admin work.
Any ideas?

