mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-13 16:14:18 +00:00
Fix for Python 2.5 compatibility; issue #98.
This commit is contained in:
parent
232fcb7c3a
commit
06db4e10e5
1 changed files with 5 additions and 4 deletions
|
|
@ -85,7 +85,8 @@ def get_style_guide(**kwargs):
|
||||||
|
|
||||||
|
|
||||||
def get_python_version():
|
def get_python_version():
|
||||||
return '%s %s on %s' % (
|
try:
|
||||||
platform.python_implementation(), platform.python_version(),
|
impl = platform.python_implementation()
|
||||||
platform.system()
|
except AttributeError: # Python 2.5
|
||||||
)
|
impl = 'Python'
|
||||||
|
return '%s %s on %s' % (impl, platform.python_version(), platform.system())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue