X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfa%2Futil%2Fmethod.py;fp=sfa%2Futil%2Fmethod.py;h=7329036e400a55b03c3ff5f777eebc9124c19c80;hp=b3d7d1a7808ad23a81f75324b6c8476ada0f2e44;hb=130e896408741add08ebc3a1b6c74aca11023c1e;hpb=cea205b4982edebf6efe03f4b4dfda706b7592fa 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):