summaryrefslogtreecommitdiff
path: root/checkers/utils.py
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-08-16 21:07:04 -0700
committerTorsten Marek <shlomme@gmail.com>2014-08-16 21:07:04 -0700
commit724f386d65fd5ffa9023cce056ed687096028729 (patch)
treea59d357b8677f1026ca39902339d52102a910cbe /checkers/utils.py
parent7aa57622583caab7dc14d0458bc3c4082036b766 (diff)
downloadpylint-724f386d65fd5ffa9023cce056ed687096028729.tar.gz
Some work on making pylint work on Python 3 without 2to3.
Diffstat (limited to 'checkers/utils.py')
-rw-r--r--checkers/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/utils.py b/checkers/utils.py
index b3ba51b..af1440d 100644
--- a/checkers/utils.py
+++ b/checkers/utils.py
@@ -417,7 +417,7 @@ def get_argument_from_call(callfunc_node, position=None, keyword=None):
try:
if position is not None and not isinstance(callfunc_node.args[position], astroid.Keyword):
return callfunc_node.args[position]
- except IndexError, error:
+ except IndexError as error:
raise NoSuchArgumentError(error)
if keyword:
for arg in callfunc_node.args: