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
commit97ef5afc42a85d63c03bbe90c4d2e6eeb27defdf (patch)
treef125c01a1d281acf90fea06f6926534f2dfa1c25
parent877b093312778c08408b0355334f41ae9c545d8e (diff)
downloadpylint-git-97ef5afc42a85d63c03bbe90c4d2e6eeb27defdf.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 b670a713b..dbc157d94 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 282048a58..d26a4ccb9 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 54ca97367..c71b46bbb 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 98226cfbe..7bfe17713 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 1d8b1f352..00e3577c6 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 84395d8c4..4eda5b863 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 e5a22bc35..84d2a9a11 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