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

Python - ensuring backward compatibility with 2.6 #4

Open
vanch3d opened this issue Apr 2, 2013 · 0 comments
Open

Python - ensuring backward compatibility with 2.6 #4

vanch3d opened this issue Apr 2, 2013 · 0 comments
Assignees
Labels

Comments

@vanch3d
Copy link
Member

vanch3d commented Apr 2, 2013

On the remote server (Linux - RedHat6), only Python 2.6 is running.
So far, no chance of upgrading it to 2.7, which is the version running on both our development computers.
In the existing code, there has been a few problems to fix:

  • Decimal(float) does not work, needs to take a string: Decimal(str(float))
  • OrderedDict does not exist, an alternative needs to be manually installed ($pip install ordereddict). Where it was used (ea_results_v3), I've added a conditional import.
  • Counter (in api_handlers) does not exist, an alternative is added to utils/ and conditional import added
@ghost ghost assigned DeboraField Apr 2, 2013
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

2 participants