Topshelf doesn't work with Python 2.4

Bug #183605 reported by Siegfried Gevatter
2
Affects Status Importance Assigned to Milestone
TopShelf
Fix Released
Undecided
Unassigned

Bug Description

Hi,

Topshelf doesn't work with Python 2.4. Run it like this «python2.4 ./topshelf.py» to test it.

I'll attach a patch with two little changes to replace the use of the "var = x if y else z" as it isn't compatible with it. The lambda's used aren't compatible neither, but I leave them for you as I don't know how to replace them... :P

It would be great if you could fix this as it would allow a lot of people that are still using 2.4 to use your application.

Revision history for this message
kripken (kripkenstein) wrote :

Good idea, thanks.

The A if x else B are easy to fix, no problem (no need to write the patch, I'll do it). I'm confused about the lambda functions - these were present in 2.4, IIRC, so they should already run fine. I'll check to make sure.

Revision history for this message
Siegfried Gevatter (rainct) wrote :

Actually the patch was already ready, but I forgot to attach it :P. Here it is.

Revision history for this message
kripken (kripkenstein) wrote :

Ok, fixed, and released as 0.2.1.

Changed in topshelf:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.