'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:
parent
813f2cbeb4
commit
14e02069ff
@ -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
|
||||
|
||||
|
||||
|
@ -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_
|
||||
|
Loading…
Reference in New Issue
Block a user