git://git.onelab.eu
/
monitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60a2b33
)
add a global version of getListFromFile()
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Tue, 11 Dec 2007 22:46:14 +0000
(22:46 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Tue, 11 Dec 2007 22:46:14 +0000
(22:46 +0000)
config.py
patch
|
blob
|
history
diff --git
a/config.py
b/config.py
index
a3032c0
..
906c447
100644
(file)
--- a/
config.py
+++ b/
config.py
@@
-23,6
+23,14
@@
def parse_bool(option, opt_str, value, parser):
else:
print "blue"
+def getListFromFile(file):
+ f = open(file, 'r')
+ list = []
+ for line in f:
+ line = line.strip()
+ list += [line]
+ return list
+
class config:
debug=0
mail=0