git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove old/python2 references to types like IntType and the like
[sfa.git]
/
sfa
/
util
/
method.py
diff --git
a/sfa/util/method.py
b/sfa/util/method.py
index
b3d7d1a
..
7329036
100644
(file)
--- a/
sfa/util/method.py
+++ b/
sfa/util/method.py
@@
-4,7
+4,6
@@
#
import time
#
import time
-from types import IntType, LongType
import textwrap
from sfa.util.sfalogging import logger
import textwrap
from sfa.util.sfalogging import logger
@@
-243,7
+242,7
@@
class Method:
# Integers and long integers are also special types. Accept
# either int or long types if an int or long is expected.
# Integers and long integers are also special types. Accept
# either int or long types if an int or long is expected.
- elif expected_type i
n (IntType, LongType) and isinstance(value, (IntType, LongType)
):
+ elif expected_type i
s int and isinstance(value, int
):
pass
elif not isinstance(value, expected_type):
pass
elif not isinstance(value, expected_type):