summaryrefslogtreecommitdiff
path: root/examples/cpp_enum_parser.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-10-17 17:30:04 -0700
committerPaul McGuire <ptmcg@users.noreply.github.com>2019-10-17 19:30:04 -0500
commit4e1a557ed6886ac67eb08122b5081c6464b699a3 (patch)
tree50e79239ce216e35beb4081b156dfb161aa970bc /examples/cpp_enum_parser.py
parent6fcd838cadce0f53f56b4316a4fc8740175891ce (diff)
downloadpyparsing-git-4e1a557ed6886ac67eb08122b5081c6464b699a3.tar.gz
Py3 cleanup: Remove unnecessary __ne__ method (#140)
Unlink Python 2, in Python 3, __ne__ defaults to the inverse of the __eq__ method. Can remove the definitions that follow this default. From the Python docs https://docs.python.org/3/reference/datamodel.html#object.__ne__ > By default, __ne__() delegates to __eq__() and inverts the result > unless it is NotImplemented.
Diffstat (limited to 'examples/cpp_enum_parser.py')
0 files changed, 0 insertions, 0 deletions