Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing version line hack in

  • Loading branch information...
commit 1763a1fc2cdd8f8380002b419c300238500bc845 1 parent e330563
@alexjg alexjg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1 
2 
@@ -12,7 +12,7 @@
# Dirty hack to get version number from - 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', '')
-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]))
Please sign in to comment.
Something went wrong with that request. Please try again.