Skip to content

Commit

Permalink
paraview.servermanager: remove Python2 support logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mathstuf committed Feb 19, 2025
1 parent a079f32 commit 143c27b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Wrapping/Python/paraview/servermanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,11 +1026,6 @@ def __eq__(self, other):
return ((self is None and other is None) or
(self is not None and other is not None and self.__repr__() == other.__repr__()))

if sys.version_info < (3,):
def __ne__(self, other):
"Returns true if the properties or properties values are not the same."
return not self.__eq__(other)

def __repr__(self):
"""Returns a string representation containing property name
and value"""
Expand Down Expand Up @@ -2770,10 +2765,7 @@ def Fetch(input, arg1=None, arg2=None, idx=0):
"""

import sys
if sys.version_info < (3,):
integer_types = (int, long,)
else:
integer_types = (int,)
integer_types = (int,)

reducer = filters.ReductionFilter(Input=OutputPort(input, idx))

Expand Down

0 comments on commit 143c27b

Please sign in to comment.