Index: Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/utils.py |
diff --git a/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/utils.py b/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/utils.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e57ff196a8a70c0b9757c46f35a9dafc3e892e33 |
--- /dev/null |
+++ b/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/utils.py |
@@ -0,0 +1,14 @@ |
+def invert_dict(dict): |
+ rv = {} |
+ for key, values in dict.iteritems(): |
+ for value in values: |
+ if value in rv: |
+ raise ValueError |
+ rv[value] = key |
+ return rv |
+ |
+ |
+class HTTPException(Exception): |
+ def __init__(self, code, message=""): |
+ self.code = code |
+ self.message = message |