diff options
author | Ricardo Gemignani <ricardo.gemignani@gmail.com> | 2014-03-06 03:08:25 -0300 |
---|---|---|
committer | Ricardo Gemignani <ricardo.gemignani@gmail.com> | 2014-03-06 03:08:25 -0300 |
commit | 554f49e7d75d1cbbee7567c577744222295eadd4 (patch) | |
tree | a2369910dd3141431fefd3b05ad2138ebfa6e789 /reporters | |
parent | 8240a55ab1ccab81925197e0a196fcfd6eac5e2b (diff) | |
download | pylint-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__.py | 4 |
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 |