summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-11-15 14:52:57 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-11-15 14:52:57 +0100
commitee9367d5716ab89888b89c45383ebc26b44ee86a (patch)
tree7adfd4a7b83db568742a9d26bf261d74a39ff5f1 /config.py
parent3c8ccc78ec536fca1c64a9fed36c3445b1e7d1eb (diff)
downloadpylint-ee9367d5716ab89888b89c45383ebc26b44ee86a.tar.gz
223 : run python2.x compatible fixers
Diffstat (limited to 'config.py')
-rw-r--r--config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.py b/config.py
index 939ace1..391cca0 100644
--- a/config.py
+++ b/config.py
@@ -26,7 +26,7 @@ from os.path import exists, isfile, join, expanduser, abspath, dirname
# pylint home is used to save old runs results ################################
USER_HOME = expanduser('~')
-if os.environ.has_key('PYLINTHOME'):
+if 'PYLINTHOME' in os.environ:
PYLINT_HOME = os.environ['PYLINTHOME']
if USER_HOME == '~':
USER_HOME = dirname(PYLINT_HOME)
@@ -88,7 +88,7 @@ def find_pylintrc():
curdir = abspath(join(curdir, '..'))
if isfile(join(curdir, 'pylintrc')):
return join(curdir, 'pylintrc')
- if os.environ.has_key('PYLINTRC') and exists(os.environ['PYLINTRC']):
+ if 'PYLINTRC' in os.environ and exists(os.environ['PYLINTRC']):
pylintrc = os.environ['PYLINTRC']
else:
user_home = expanduser('~')