Commits

Florent Xicluna  committed fa5b9aa

Fix for Python 2.5 compatibility; issue #98.

  • Participants
  • Parent commits dc667e1

Comments (0)

Files changed (1)

File flake8/engine.py

 
 
 def get_python_version():
-    return '%s %s on %s' % (
-        platform.python_implementation(), platform.python_version(),
-        platform.system()
-    )
+    try:
+        impl = platform.python_implementation()
+    except AttributeError:  # Python 2.5
+        impl = 'Python'
+    return '%s %s on %s' % (impl, platform.python_version(), platform.system())