projects
/
weather.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Caching support for URLs with port numbers
[weather.git]
/
weather.py
diff --git
a/weather.py
b/weather.py
index
1dfa081
..
71cf0ec
100644
(file)
--- a/
weather.py
+++ b/
weather.py
@@
-212,7
+212,7
@@
def get_uri(
except (IOError, OSError): pass
dcache_fn = os.path.join(
dcachedir,
- uri.split(":")[1].replace("/","_")
+ uri.split(":"
,1
)[1].replace("/","_")
)
now = time.time()
if cache_data and os.access(dcache_fn, os.R_OK) \