cpplint_unittest.py: Define xrange for Python 3

This commit is contained in:
cclauss 2018-03-12 18:19:10 +01:00 committed by GitHub
parent d98652e03b
commit 099f059086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,11 @@ import unittest
import cpplint
try:
xrange # Python 2
except NameError:
xrange = range # Python 3
# This class works as an error collector and replaces cpplint.Error
# function for the unit tests. We also verify each category we see