Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing version line hack in setup.py

  • Loading branch information...
commit 1763a1fc2cdd8f8380002b419c300238500bc845 1 parent e330563
@alexjg alexjg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  setup.py
View
2  setup.py
@@ -12,7 +12,7 @@
# Dirty hack to get version number from __init__.py - we can't import it as it
# depends on requests and requests isn't installed until this file is read
init = os.path.join(os.path.dirname(__file__), 'gocardless', '__init__.py')
-version_line = filter(lambda l: l.startswith('VERSION'), open(init))[0]
+version_line = [line for line in open(init) if line.startswith("VERSION")][0]
version = '.'.join(str(p) for p in eval(version_line.split('=')[-1]))
CLASSIFIERS = [
Please sign in to comment.
Something went wrong with that request. Please try again.