Signed-off-by: Satoshi KOBAYASHI <[email protected]>
---
ryu/app/simple_switch_snort.py | 1 +
ryu/cmd/of_config_cli.py | 2 ++
ryu/cmd/rpc_cli.py | 2 ++
ryu/lib/ovs/vsctl.py | 2 ++
ryu/lib/stringify.py | 2 ++
ryu/tests/integrated/run_tests_with_ovs12.py | 2 ++
ryu/tests/integrated/test_of_config.py | 2 ++
ryu/tests/integrated/vrrp_common.py | 2 ++
ryu/tests/packet_data_generator3/gen.py | 3 +++
ryu/tests/unit/lib/test_ip.py | 2 ++
ryu/tests/unit/lib/test_ofctl.py | 2 ++
ryu/tests/unit/lib/test_stringify.py | 2 ++
ryu/tests/unit/ofproto/test_parser.py | 2 ++
ryu/tests/unit/ofproto/test_parser_compat.py | 2 ++
ryu/tests/unit/ofproto/test_parser_ofpmatch.py | 2 ++
ryu/tests/unit/packet/test_bgp.py | 2 ++
ryu/tests/unit/packet/test_vrrp.py | 2 ++
17 files changed, 34 insertions(+)
diff --git a/ryu/app/simple_switch_snort.py b/ryu/app/simple_switch_snort.py
index 71fce04..553a8bb 100644
--- a/ryu/app/simple_switch_snort.py
+++ b/ryu/app/simple_switch_snort.py
@@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
import array
diff --git a/ryu/cmd/of_config_cli.py b/ryu/cmd/of_config_cli.py
index ef1bb16..1601503 100755
--- a/ryu/cmd/of_config_cli.py
+++ b/ryu/cmd/of_config_cli.py
@@ -23,6 +23,8 @@
# --peers=sw1=localhost:1830:username:password
# (Cmd) raw_get sw1
+from __future__ import print_function
+
import ryu.contrib
ryu.contrib.update_module_path()
diff --git a/ryu/cmd/rpc_cli.py b/ryu/cmd/rpc_cli.py
index 38c4ee6..57ad0e0 100755
--- a/ryu/cmd/rpc_cli.py
+++ b/ryu/cmd/rpc_cli.py
@@ -29,6 +29,8 @@
# NOTIFICATION from echo-server ['notify-method', ['param1', 'param2']]
# (Cmd)
+from __future__ import print_function
+
import ryu.contrib
ryu.contrib.update_module_path()
diff --git a/ryu/lib/ovs/vsctl.py b/ryu/lib/ovs/vsctl.py
index 8670eb3..8142734 100644
--- a/ryu/lib/ovs/vsctl.py
+++ b/ryu/lib/ovs/vsctl.py
@@ -15,6 +15,8 @@
# limitations under the License.
+from __future__ import print_function
+
import itertools
import logging
import operator
diff --git a/ryu/lib/stringify.py b/ryu/lib/stringify.py
index 7d08390..8fb2c96 100644
--- a/ryu/lib/stringify.py
+++ b/ryu/lib/stringify.py
@@ -16,6 +16,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
+
import base64
import collections
import inspect
diff --git a/ryu/tests/integrated/run_tests_with_ovs12.py
b/ryu/tests/integrated/run_tests_with_ovs12.py
index dc194c5..9d82d37 100755
--- a/ryu/tests/integrated/run_tests_with_ovs12.py
+++ b/ryu/tests/integrated/run_tests_with_ovs12.py
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
+
import unittest
from nose.tools import ok_, eq_, timed, nottest
diff --git a/ryu/tests/integrated/test_of_config.py
b/ryu/tests/integrated/test_of_config.py
index 5a92765..6bcc7d0 100644
--- a/ryu/tests/integrated/test_of_config.py
+++ b/ryu/tests/integrated/test_of_config.py
@@ -110,6 +110,8 @@ Here is my sys.config used for this test.
"""
+from __future__ import print_function
+
import traceback
import lxml.etree
diff --git a/ryu/tests/integrated/vrrp_common.py
b/ryu/tests/integrated/vrrp_common.py
index 1f88dc0..58621f4 100644
--- a/ryu/tests/integrated/vrrp_common.py
+++ b/ryu/tests/integrated/vrrp_common.py
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
+
import time
import random
diff --git a/ryu/tests/packet_data_generator3/gen.py
b/ryu/tests/packet_data_generator3/gen.py
index 7dc95b4..416cd7f 100644
--- a/ryu/tests/packet_data_generator3/gen.py
+++ b/ryu/tests/packet_data_generator3/gen.py
@@ -1,4 +1,7 @@
#! /usr/bin/env python
+
+from __future__ import print_function
+
import getopt
import os
import six
diff --git a/ryu/tests/unit/lib/test_ip.py b/ryu/tests/unit/lib/test_ip.py
index 5aa7410..d9716c8 100644
--- a/ryu/tests/unit/lib/test_ip.py
+++ b/ryu/tests/unit/lib/test_ip.py
@@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
+
import unittest
import logging
import struct
diff --git a/ryu/tests/unit/lib/test_ofctl.py b/ryu/tests/unit/lib/test_ofctl.py
index 33c3e96..11e27f7 100644
--- a/ryu/tests/unit/lib/test_ofctl.py
+++ b/ryu/tests/unit/lib/test_ofctl.py
@@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
+
import unittest
import logging
import netaddr
diff --git a/ryu/tests/unit/lib/test_stringify.py
b/ryu/tests/unit/lib/test_stringify.py
index 2a6e167..46fb21f 100644
--- a/ryu/tests/unit/lib/test_stringify.py
+++ b/ryu/tests/unit/lib/test_stringify.py
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
+
import base64
import six
import unittest
diff --git a/ryu/tests/unit/ofproto/test_parser.py
b/ryu/tests/unit/ofproto/test_parser.py
index 8b2b6c0..dc2940e 100644
--- a/ryu/tests/unit/ofproto/test_parser.py
+++ b/ryu/tests/unit/ofproto/test_parser.py
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
+
import six
import sys
import unittest
diff --git a/ryu/tests/unit/ofproto/test_parser_compat.py
b/ryu/tests/unit/ofproto/test_parser_compat.py
index fc22f04..dcca56b 100644
--- a/ryu/tests/unit/ofproto/test_parser_compat.py
+++ b/ryu/tests/unit/ofproto/test_parser_compat.py
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
+
import six
import sys
import unittest
diff --git a/ryu/tests/unit/ofproto/test_parser_ofpmatch.py
b/ryu/tests/unit/ofproto/test_parser_ofpmatch.py
index 5beaa67..3989f38 100644
--- a/ryu/tests/unit/ofproto/test_parser_ofpmatch.py
+++ b/ryu/tests/unit/ofproto/test_parser_ofpmatch.py
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
+
try:
# Python 3
from functools import reduce
diff --git a/ryu/tests/unit/packet/test_bgp.py
b/ryu/tests/unit/packet/test_bgp.py
index 8b77cc6..37f0468 100644
--- a/ryu/tests/unit/packet/test_bgp.py
+++ b/ryu/tests/unit/packet/test_bgp.py
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
+
import unittest
from nose.tools import eq_
from nose.tools import ok_
diff --git a/ryu/tests/unit/packet/test_vrrp.py
b/ryu/tests/unit/packet/test_vrrp.py
index 5113127..71c5250 100644
--- a/ryu/tests/unit/packet/test_vrrp.py
+++ b/ryu/tests/unit/packet/test_vrrp.py
@@ -16,6 +16,8 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
+from __future__ import print_function
+
import unittest
import logging
import six
--
2.4.9 (Apple Git-60)
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel