mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 10:46:54 +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():
|
||||
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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue