chiark
/
gitweb
/
~mdw
/
xtoys
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58b5e33
)
xcatch: Fix stupid errors in file-watching.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 17 Dec 2008 12:50:29 +0000
(12:50 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 17 Dec 2008 12:50:29 +0000
(12:50 +0000)
xcatch.in
patch
|
blob
|
blame
|
history
diff --git
a/xcatch.in
b/xcatch.in
index 5c940f1aab3f8e86ccd8f129cc9f7568c0a716b5..d6e51d13b48263b70ccb193d3db0df7cd4cbbefb 100644
(file)
--- a/
xcatch.in
+++ b/
xcatch.in
@@
-404,8
+404,8
@@
def main():
name = '<stdin>'
catcher.watch_file(stdin)
else:
- name = file
- catcher.watch(open(opts.file, 'r'))
+ name =
opts.
file
+ catcher.watch
_file
(open(opts.file, 'r'))
elif len(args) == 0:
name = '<stdin>'
catcher.watch_file(stdin)