Commits

Ian Cordasco committed 5864358 Merge

Merge the pull requests and Florent's changes.

Boy will this history look down right horrible.

  • Participants
  • Parent commits 764e083, 0016ecc

Comments (0)

Files changed (2)

 # -*- coding: utf-8 -*-
 import re
+import platform
 
 import pep8
 
     """
     (extensions, parser_hooks, options_hooks) = _register_extensions()
     details = ', '.join(['%s: %s' % ext for ext in extensions])
-    parser = pep8.get_parser('flake8', '%s (%s)' % (__version__, details))
+    python_version = get_python_version()
+    parser = pep8.get_parser('flake8', '%s (%s) %s' % (
+        __version__, details, python_version
+    ))
     for opt in ('--repeat', '--testsuite', '--doctest'):
         try:
             parser.remove_option(opt)
     for options_hook in options_hooks:
         options_hook(options)
     return styleguide
+
+
+def get_python_version():
+    return '%s %s on %s' % (
+        platform.python_implementation(), platform.python_version(),
+        platform.system()
+    )

flake8/util.py

File contents unchanged.