summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormicheles <micheles@micheles-laptop>2010-07-11 06:32:17 +0200
committermicheles <micheles@micheles-laptop>2010-07-11 06:32:17 +0200
commit76e566e7fc5c55d8f03c24a2416b9583daeb3f07 (patch)
tree16ca32e544ad17fd2f58d31a13c614877cd635d6
parent5e4bdc93b22e41ba39e871d30f646a34ac7475e0 (diff)
downloadmicheles-76e566e7fc5c55d8f03c24a2416b9583daeb3f07.tar.gz
Removed not used namedpipe functionality
-rw-r--r--plac/CHANGES.txt2
-rw-r--r--plac/plac_ext.py16
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):