'reload' has been renamed to 'imp.reload' in Python 3

Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Satoshi Kobayashi 2015-04-14 13:18:24 +09:00 committed by FUJITA Tomonori
parent 813f2cbeb4
commit 14e02069ff
2 changed files with 14 additions and 0 deletions

View File

@ -19,6 +19,13 @@ import unittest
import mock
from nose.tools import eq_, raises
try:
# Python 3
from imp import reload
except ImportError:
# Python 2
pass
from ryu.cmd.manager import main

View File

@ -16,6 +16,13 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
try:
# Python 3
from imp import reload
except ImportError:
# Python 2
pass
import unittest
import logging
from nose.tools import eq_