git.samba.org
/
build-farm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fc20bd
)
Remove unused load_hash function.
author
Jelmer Vernooij
<jelmer@samba.org>
Mon, 22 Nov 2010 21:20:52 +0000
(22:20 +0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Mon, 22 Nov 2010 21:20:52 +0000
(22:20 +0100)
buildfarm/util.py
patch
|
blob
|
history
diff --git
a/buildfarm/util.py
b/buildfarm/util.py
index 3b18164cfd03c49d53a737ced12e9fbbab02931b..3739ebaaf56572f708b4326a8501db41fea077d7 100644
(file)
--- a/
buildfarm/util.py
+++ b/
buildfarm/util.py
@@
-34,22
+34,6
@@
def load_list(fname):
return ret
-def load_hash(fname):
- """load a hash from a file, using : to separate"""
- lines = load_list(fname)
- ret = {}
- for l in lines:
- try:
- (key, value) = l.split(":", 1)
- except ValueError:
- pass # Raise error ??
- else:
- key = key.rstrip()
- value = value.lstrip().rstrip("\n")
- ret[key] = value
- return ret
-
-
def FileLoad(filename):
"""read a file into a string"""
f = open(filename, 'r')