mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-08-06 18:23:32 +00:00
cpplint_unittest.py: Define xrange for Python 3
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user