summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWAMOTO Toshihiro <iwamoto@valinux.co.jp>2015-10-16 14:42:35 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-22 05:50:54 +0900
commitdc361d1a3b105d8647f42495b5d9848a0d5c6777 (patch)
tree0ed66d7125cdf28614a5bbdda4b5eff3a91b69a7
parentd5bb8d4603e80e57b00b4bbb4646057a3c9700ae (diff)
Python3: complete previous removal of types usage
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 <iwamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/services/protocols/bgp/rtconf/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ryu/services/protocols/bgp/rtconf/base.py b/ryu/services/protocols/bgp/rtconf/base.py
index eb195436..ee8948a9 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: