diff options
author | micheles <micheles@micheles-laptop> | 2010-07-11 06:32:17 +0200 |
---|---|---|
committer | micheles <micheles@micheles-laptop> | 2010-07-11 06:32:17 +0200 |
commit | 76e566e7fc5c55d8f03c24a2416b9583daeb3f07 (patch) | |
tree | 16ca32e544ad17fd2f58d31a13c614877cd635d6 | |
parent | 5e4bdc93b22e41ba39e871d30f646a34ac7475e0 (diff) | |
download | micheles-76e566e7fc5c55d8f03c24a2416b9583daeb3f07.tar.gz |
Removed not used namedpipe functionality
-rw-r--r-- | plac/CHANGES.txt | 2 | ||||
-rw-r--r-- | plac/plac_ext.py | 16 |
2 files changed, 1 insertions, 17 deletions
diff --git a/plac/CHANGES.txt b/plac/CHANGES.txt index dfb8c23..e7ef6f6 100644 --- a/plac/CHANGES.txt +++ b/plac/CHANGES.txt @@ -3,7 +3,7 @@ HISTORY 0.6.0 Improvement the interactive experience with full readline support and custom help. Added support for long running command, via threads and - processes. + processes (2010-07-11). 0.5.0 Gigantic release. Introduced smart options, added an Interpreter class and the command container concept. Made the split plac/plac_core/plac_ext and added a plac runner, able to run scripts, batch files and doctests. diff --git a/plac/plac_ext.py b/plac/plac_ext.py index 69d7772..43adbbb 100644 --- a/plac/plac_ext.py +++ b/plac/plac_ext.py @@ -55,22 +55,6 @@ class TerminatedProcess(Exception): def terminatedProcess(signum, frame): raise TerminatedProcess -def namedpipe(fname): - "Return a line iterator reading from a named pipe every twice per second" - try: - os.mkfifo(fname) - except OSError: # already there - pass - with open(fname) as fifo: - while True: - line = fifo.readline() - if line == 'EOF\n': - break - elif line: - yield line - time.sleep(.5) - os.remove(fname) - ########################### readline support ############################# class ReadlineInput(object): |