summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ryu/utils.py b/ryu/utils.py
index 1bc7ea3f..f2da6702 100644
--- a/ryu/utils.py
+++ b/ryu/utils.py
@@ -65,3 +65,7 @@ def find_flagfile(default_path=RYU_DEFAULT_FLAG_FILE):
def round_up(x, y):
return ((x + y - 1) / y) * y
+
+
+def hex_array(data):
+ return ' '.join(hex(ord(chr)) for chr in data)