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
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel