Inconsistent tabs vs spaces for indentation in HTTPRequest.py means potential for subtle bug to be introduced.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Undecided
|
Tres Seaver |
Bug Description
Traceback (most recent call last):
File "deployserver.py", line 6, in ?
from ZPublisher.
File "/u01/app/
from Publish import publish_module, Retry
File "/u01/app/
from Request import Request
File "/u01/app/
import HTTPRequest
File "/u01/app/
broken_p = paramlessre.
TabError: inconsistent use of tabs and spaces in indentation
Doing `cat -vent ZPublisher/
[...cut...]
1493 else:$
1494 # Broken Cookie without = nor value.$
1495 ^I^Ibroken_p = paramlessre.
1496 ^I^Iif broken_p:$
1497 ^I^I l = len(broken_
1498 ^I^I name = broken_p.group(2)$
1499 ^I^I value = ''$
1500 $
1501 else:$
1502 return result$
[...cut...]
Meaning that the 'Broken Cookie' block is open for subtle breakage if any other indentation changes anywhere.
Changed in zope2: | |
status: | Fix Committed → Fix Released |
The tabs are only present on the 2.9 branch, which may never see another
release. They also don't cause a traceback that I can see: your system
configuration must be different in some way.
Nevertheless, I have checked in a patch de-tabifying the file:
http:// svn.zope. org/Zope/ branches/ 2.9/?rev= 86919&view= rev