limscoder / amfast

An Adobe AMF serialization and RPC implementation for Python, written as a C extension for speed.
MIT License
5 stars 6 forks source link

Build fails with python 2.4 #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Building tag 0.5.2 failed with python 2.4 while package page on pypi states 
compatibility with 2.4.

One error is due to incorrect indent, others are "'yield' not allowed in a 
'try' block with a 'finally' clause".

I've attached a patch file that fixes the build.

  File "/usr/lib/python2.4/site-packages/amfast/remoting/cherrypy_channel.py", line 146
SyntaxError: ("'yield' not allowed in a 'try' block with a 'finally' clause", 
('/usr/lib/python2.4/site-packages/amfast/remoting/cherrypy_channel.py', 146, 
None, None))

Sorry: IndentationError: ('unindent does not match any outer indentation 
level', 
('/usr/lib/python2.4/site-packages/amfast/remoting/memcache_connection_manager.p
y', 131, 9, '   else:\n'))

  File "/usr/lib/python2.4/site-packages/amfast/remoting/subscription_manager.py", line 249
SyntaxError: ("'yield' not allowed in a 'try' block with a 'finally' clause", 
('/usr/lib/python2.4/site-packages/amfast/remoting/subscription_manager.py', 
249, None, None))

  File "/usr/lib/python2.4/site-packages/amfast/remoting/memcache_subscription_manager.py", line 310
SyntaxError: ("'yield' not allowed in a 'try' block with a 'finally' clause", 
('/usr/lib/python2.4/site-packages/amfast/remoting/memcache_subscription_manager
.py', 310, None, None))

Original issue reported on code.google.com by alex.do...@gmail.com on 7 Jul 2011 at 5:52

Attachments:

GoogleCodeExporter commented 9 years ago
"Build" here means building an rpm package (bdist_rpm).

Original comment by alex.do...@gmail.com on 7 Jul 2011 at 7:57

GoogleCodeExporter commented 9 years ago

Original comment by dthomp...@gmail.com on 3 Dec 2011 at 11:32