diff options
author | Greg S <enimihil@gmail.com> | 2009-04-10 20:01:32 (GMT) |
---|---|---|
committer | Greg S <enimihil@gmail.com> | 2009-04-10 20:01:32 (GMT) |
commit | fd971c8b5d83872ec6c65827ad1911005c72befc (patch) | |
tree | 1ae15fe73bae4e29a54e751092f87f9fd3721648 | |
parent | 0f1bf65c0f472e1505375c1051b307dd3e434636 (diff) |
Almost started working on something.
-rw-r--r-- | quizdata/_urlproc.py | 6 |
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() |