Ticket #227 (reopened defect)
syntax error on os.walk
| Reported by: | mats_a@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Template processing | Version: | devel |
| Keywords: | Cc: |
Description
<?python
import os
for root,dirs,files in os.walk():
print root
?>
This should work fine, but it throws a template syntax error
...[snip]...
File "build/bdist.linux-i686/egg/genshi/template/loader.py", line 259, in _instantiate
allow_exec=self.allow_exec)
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 373, in init
self.stream = list(self._prepare(self._parse(source, encoding)))
File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 206, in _parse
pos[2] + (err.offset or 0))
TemplateSyntaxError?: invalid syntax (/home/mats/documents/....../myfile.html, line 54)
