diff --git a/flake8/engine.py b/flake8/engine.py index cd2b62c..8d1ac08 100644 --- a/flake8/engine.py +++ b/flake8/engine.py @@ -85,7 +85,8 @@ def get_style_guide(**kwargs): 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())