X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fmethod.py;h=7329036e400a55b03c3ff5f777eebc9124c19c80;hb=130e896408741add08ebc3a1b6c74aca11023c1e;hp=b3d7d1a7808ad23a81f75324b6c8476ada0f2e44;hpb=04acd3228e5911d36d0cd58dc35b9319fc558e17;p=sfa.git diff --git a/sfa/util/method.py b/sfa/util/method.py index b3d7d1a7..7329036e 100644 --- a/sfa/util/method.py +++ b/sfa/util/method.py @@ -4,7 +4,6 @@ # import time -from types import IntType, LongType 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. - elif expected_type in (IntType, LongType) and isinstance(value, (IntType, LongType)): + elif expected_type is int and isinstance(value, int): pass elif not isinstance(value, expected_type):