summaryrefslogtreecommitdiff
path: root/reporters
diff options
context:
space:
mode:
authorRicardo Gemignani <ricardo.gemignani@gmail.com>2014-03-06 03:08:25 -0300
committerRicardo Gemignani <ricardo.gemignani@gmail.com>2014-03-06 03:08:25 -0300
commit554f49e7d75d1cbbee7567c577744222295eadd4 (patch)
treea2369910dd3141431fefd3b05ad2138ebfa6e789 /reporters
parent8240a55ab1ccab81925197e0a196fcfd6eac5e2b (diff)
downloadpylint-554f49e7d75d1cbbee7567c577744222295eadd4.tar.gz
except as replaced by commas, one with_statement future import added and StringFormat used to replace string.format when python < 2.6
Diffstat (limited to 'reporters')
-rw-r--r--reporters/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/reporters/__init__.py b/reporters/__init__.py
index e3d93ef..ced2f77 100644
--- a/reporters/__init__.py
+++ b/reporters/__init__.py
@@ -28,6 +28,10 @@ if sys.version_info >= (3, 0):
def cmp(a, b):
return (a > b) - (a < b)
+import stringformat
+if sys.version_info < (2, 6):
+ stringformat.init(True)
+
def diff_string(old, new):
"""given a old and new int value, return a string representing the
difference