git.ucc.asn.au
/
progcomp2013.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
There's probably a better way of doing this...
[progcomp2013.git]
/
qchess
/
src
/
main.py
diff --git
a/qchess/src/main.py
b/qchess/src/main.py
index
87fe35b
..
61e030b
100644
(file)
--- a/
qchess/src/main.py
+++ b/
qchess/src/main.py
@@
-127,13
+127,13
@@
def main(argv):
elif (arg[1] == '-' and arg[2:].split("=")[0] == "log"):
# Log file
if len(arg[2:].split("=")) == 1:
elif (arg[1] == '-' and arg[2:].split("=")[0] == "log"):
# Log file
if len(arg[2:].split("=")) == 1:
- log_file =
sys.stdout
+ log_file =
LogFile(sys.stdout)
else:
f = arg[2:].split("=")[1]
if f[0] == '@':
log_file = HttpLog(f[1:])
else:
else:
f = arg[2:].split("=")[1]
if f[0] == '@':
log_file = HttpLog(f[1:])
else:
- log_file = LogFile(
f
)
+ log_file = LogFile(
open(f, "w", 0)
)
elif (arg[1] == '-' and arg[2:].split("=")[0] == "delay"):
# Delay
if len(arg[2:].split("=")) == 1:
elif (arg[1] == '-' and arg[2:].split("=")[0] == "delay"):
# Delay
if len(arg[2:].split("=")) == 1:
@@
-263,7
+263,6
@@
def main(argv):
if log_file != None and log_file != sys.stdout:
if log_file != None and log_file != sys.stdout:
- log_file.write("# EOF\n")
log_file.close()
if src_file != None and src_file != sys.stdin:
log_file.close()
if src_file != None and src_file != sys.stdin:
UCC
git Repository :: git.ucc.asn.au