Fix the leftover of previos types.*Type removal.  Also, as python3
doesn't have long type, use six.integer_types instead.

Signed-off-by: IWAMOTO Toshihiro <[email protected]>
---
 ryu/services/protocols/bgp/rtconf/base.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ryu/services/protocols/bgp/rtconf/base.py 
b/ryu/services/protocols/bgp/rtconf/base.py
index eb19543..ee8948a 100644
--- a/ryu/services/protocols/bgp/rtconf/base.py
+++ b/ryu/services/protocols/bgp/rtconf/base.py
@@ -20,6 +20,7 @@ from abc import ABCMeta
 from abc import abstractmethod
 import numbers
 import logging
+import six
 import uuid
 
 from ryu.services.protocols.bgp.base import add_bgp_error_metadata
@@ -678,7 +679,7 @@ def validate_soo_list(soo_list):
 
 @validate(name=MAX_PREFIXES)
 def validate_max_prefixes(max_prefixes):
-    if not isinstance(max_prefixes, (IntType, long)):
+    if not isinstance(max_prefixes, six.integer_types):
         raise ConfigTypeError(desc='Max. prefixes value should be of type '
                               'int or long but found %s' % type(max_prefixes))
     if max_prefixes < 0:
-- 
2.1.4


------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to