summaryrefslogtreecommitdiff
path: root/checkers/base.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-08-29 13:21:37 -0400
committerBrett Cannon <brett@python.org>2014-08-29 13:21:37 -0400
commitfea908c8e20aa3eac1bcaad18fecd4c68cfc9b05 (patch)
treef86e66efe19241b6a3fec59a5368c07ee497f2ed /checkers/base.py
parent45172520702065f9eb36e346be4b3c2f17c1c62b (diff)
downloadpylint-fea908c8e20aa3eac1bcaad18fecd4c68cfc9b05.tar.gz
Fix a incorrect use of sys.maxint by using sys.maxsize
Diffstat (limited to 'checkers/base.py')
-rw-r--r--checkers/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/base.py b/checkers/base.py
index b5e96fb..98e5a58 100644
--- a/checkers/base.py
+++ b/checkers/base.py
@@ -974,7 +974,7 @@ class NameChecker(_BasicChecker):
if len(all_groups) < 2:
continue
groups = collections.defaultdict(list)
- min_warnings = sys.maxint
+ min_warnings = sys.maxsize
for group in six.itervalues(all_groups):
groups[len(group)].append(group)
min_warnings = min(len(group), min_warnings)