Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--quizdata/_urlproc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/quizdata/_urlproc.py b/quizdata/_urlproc.py
index fc94cdc..c877189 100644
--- a/quizdata/_urlproc.py
+++ b/quizdata/_urlproc.py
@@ -1,6 +1,12 @@
'''
Module implementing the opening of a quizdata resource via URL.
'''
+from urllib import urlopen
def open(url, cached=False):
+ if (not url.startswith("http") or
+ not url.startswith("ftp") or
+ not url.startswith("file")):
+ raise NotImplementedError()
+
raise NotImplementedError()