Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: invalid syntax blog.py:76: _class="post" #2

Open
samtaufa opened this issue May 27, 2009 · 0 comments
Open

SyntaxError: invalid syntax blog.py:76: _class="post" #2

samtaufa opened this issue May 27, 2009 · 0 comments
Labels

Comments

@samtaufa
Copy link
Collaborator

Symptom:
install errors with:

byte-compiling /usr/local/lib/python2.5/site-packages/countershape/blog.py to blog.pyc
File "/usr/local/lib/python2.5/site-packages/countershape/blog.py", line 76
return str(html.DIV(*blocks, _class="post"))
^
SyntaxError: invalid syntax

Likewise, when you cshape on doc-src

cshape countershape/doc-src/ /tmp/

Traceback (most recent call last):
File "/usr/local/bin/cshape", line 4, in
import countershape.doc as doc
File "/usr/local/lib/python2.5/site-packages/countershape/init.py", line 5, in
from blog import Post, IndexPage, ArchivePage, RSSPage, Blog
File "/usr/local/lib/python2.5/site-packages/countershape/blog.py", line 76
return str(html.DIV(*blocks, _class="post"))
^
SyntaxError: invalid syntax

pry countershape/test/

Traceback (most recent call last):
File "/usr/local/bin/pry", line 114, in
main()
File "/usr/local/bin/pry", line 93, in main
r.addPath(path or ".", options.recurse)
File "/usr/local/lib/python2.5/site-packages/libpry/test.py", line 882, in addPath
self.addChild(_DirNode(path, self.cover))
File "/usr/local/lib/python2.5/site-packages/libpry/test.py", line 817, in init
self.addChild(_FileNode(self.dirPath, i, self.magic))
File "/usr/local/lib/python2.5/site-packages/libpry/test.py", line 756, in init
m = import(modname)
File "./test_blog.py", line 2, in
import countershape
File "../countershape/init.py", line 5, in
from blog import Post, IndexPage, ArchivePage, RSSPage, Blog
File "../countershape/blog.py", line 76
return str(html.DIV(*blocks, _class="post"))
^
SyntaxError: invalid syntax

OS:
OpenBSD 4.4 patched
Python:
2.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant