summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-09-22 15:26:39 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2010-09-22 15:26:39 +0200
commit84ddbc2540f2f21810ef991e59f791cce2c995bf (patch)
treea094189ed64e42d19a6712fb9ae3d1044ad402a5
parent8901aeb397c53580c806da5e632a121c8db56c89 (diff)
downloadpylint-84ddbc2540f2f21810ef991e59f791cce2c995bf.tar.gz
python2.3 compat fixes
-rwxr-xr-xcheckers/base.py2
-rw-r--r--checkers/imports.py2
-rw-r--r--checkers/logging.py1
-rw-r--r--checkers/string_format.py1
-rw-r--r--checkers/utils.py1
-rw-r--r--lint.py1
-rw-r--r--utils.py1
7 files changed, 7 insertions, 2 deletions
diff --git a/checkers/base.py b/checkers/base.py
index b670a71..dbc157d 100755
--- a/checkers/base.py
+++ b/checkers/base.py
@@ -17,7 +17,7 @@
from logilab import astng
-from logilab.common.compat import any
+from logilab.common.compat import any, set
from logilab.common.ureports import Table
from logilab.astng import are_exclusive
diff --git a/checkers/imports.py b/checkers/imports.py
index 282048a..d26a4cc 100644
--- a/checkers/imports.py
+++ b/checkers/imports.py
@@ -18,7 +18,7 @@
from logilab.common.graph import get_cycles, DotBackend
from logilab.common.modutils import is_standard_module
from logilab.common.ureports import VerbatimText, Paragraph
-from logilab.common.compat import sorted, enumerate
+from logilab.common.compat import sorted, enumerate, set
from logilab import astng
from logilab.astng import are_exclusive
diff --git a/checkers/logging.py b/checkers/logging.py
index 54ca973..c71b46b 100644
--- a/checkers/logging.py
+++ b/checkers/logging.py
@@ -17,6 +17,7 @@
from logilab import astng
from pylint import checkers
from pylint import interfaces
+from logilab.common.compat import set
EAGER_STRING_INTERPOLATION = 'W6501'
diff --git a/checkers/string_format.py b/checkers/string_format.py
index 98226cf..7bfe177 100644
--- a/checkers/string_format.py
+++ b/checkers/string_format.py
@@ -22,6 +22,7 @@ import string
from logilab import astng
from pylint.interfaces import IASTNGChecker
from pylint.checkers import BaseChecker
+from logilab.common.compat import set
MSGS = {
'E9900': ("Unsupported format character %r (%#02x) at index %d",
diff --git a/checkers/utils.py b/checkers/utils.py
index 1d8b1f3..00e3577 100644
--- a/checkers/utils.py
+++ b/checkers/utils.py
@@ -19,6 +19,7 @@
"""
from logilab import astng
+from logilab.common.compat import set
try:
# python >= 2.4
diff --git a/lint.py b/lint.py
index 84395d8..4eda5b8 100644
--- a/lint.py
+++ b/lint.py
@@ -45,6 +45,7 @@ from logilab.common.fileutils import norm_open
from logilab.common.ureports import Table, Text, Section
from logilab.common.graph import ordered_nodes
from logilab.common.__pkginfo__ import version as common_version
+from logilab.common.compat import set
from logilab.astng import MANAGER, nodes
from logilab.astng.__pkginfo__ import version as astng_version
diff --git a/utils.py b/utils.py
index e5a22bc..84d2a9a 100644
--- a/utils.py
+++ b/utils.py
@@ -27,6 +27,7 @@ from logilab.common.modutils import modpath_from_file, get_module_files, \
from logilab.common.textutils import normalize_text
from logilab.common.configuration import rest_format_section
from logilab.common.ureports import Section
+from logilab.common.compat import set
from logilab.astng import nodes, Module