which will be used by later patch.
Signed-off-by: Isaku Yamahata <[email protected]>
---
ryu/utils.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ryu/utils.py b/ryu/utils.py
index d5b4479..323aa9e 100644
--- a/ryu/utils.py
+++ b/ryu/utils.py
@@ -37,6 +37,12 @@ def import_module(modname):
return sys.modules[modname]
+def import_class(import_name):
+ modname, _sep, cls_name = import_name.rpartition('.')
+ __import__(modname)
+ return getattr(sys.modules[modname], cls_name)
+
+
def round_up(x, y):
return ((x + y - 1) / y) * y
--
1.7.10.4
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel