| Index: third_party/pylint/pyreverse/utils.py
|
| diff --git a/third_party/pylint/pyreverse/utils.py b/third_party/pylint/pyreverse/utils.py
|
| index 3d12d41d3133ad60d4910eea44fab9c26f3d0042..5d6d13356ae4acfe91fb5a34127557b05c0521fa 100644
|
| --- a/third_party/pylint/pyreverse/utils.py
|
| +++ b/third_party/pylint/pyreverse/utils.py
|
| @@ -16,6 +16,7 @@
|
| """
|
| generic classes/functions for pyreverse core/extensions
|
| """
|
| +from __future__ import print_function
|
|
|
| import sys
|
| import re
|
| @@ -118,8 +119,8 @@ class FilterMixIn(object):
|
| for nummod in mode.split('+'):
|
| try:
|
| __mode += MODES[nummod]
|
| - except KeyError, ex:
|
| - print >> sys.stderr, 'Unknown filter mode %s' % ex
|
| + except KeyError as ex:
|
| + print('Unknown filter mode %s' % ex, file=sys.stderr)
|
| self.__mode = __mode
|
|
|
|
|
| @@ -127,5 +128,5 @@ class FilterMixIn(object):
|
| """return true if the node should be treated
|
| """
|
| visibility = get_visibility(getattr(node, 'name', node))
|
| - return not (self.__mode & VIS_MOD[visibility])
|
| + return not self.__mode & VIS_MOD[visibility]
|
|
|
|
|