projects
/
weather.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c63284c
)
Correct setpath search order
author
Jeremy Stanley
<fungi@yuggoth.org>
Mon, 19 Sep 2016 15:25:18 +0000
(15:25 +0000)
committer
Jeremy Stanley
<fungi@yuggoth.org>
Mon, 19 Sep 2016 15:25:18 +0000
(15:25 +0000)
Short-circuit the outer loop in setpath testing so that we stop
iterating through supplied path elements once a match is found.
weather.py
patch
|
blob
|
history
diff --git
a/weather.py
b/weather.py
index
48bb8d1
..
d00f7ff
100644
(file)
--- a/
weather.py
+++ b/
weather.py
@@
-692,6
+692,8
@@
def data_index(path):
os.stat(candidate).st_mtime
)
break
+ if filename in datafiles:
+ break
return datafiles
def guess(