summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2010-02-15 19:56:57 +0100
committerMichael Buesch <mb@bu3sch.de>2010-02-15 19:56:57 +0100
commitb7b8291a54b166e8d1e6565099288f8813100632 (patch)
treef32ff0416f049f6445fe877fa485c2c4615a636e
parente53bc13c41d163ff851e3346a3611a43c63d9b3f (diff)
downloadtoprammer-b7b8291a54b166e8d1e6565099288f8813100632.tar.xz
toprammer-b7b8291a54b166e8d1e6565099288f8813100632.zip
Fix input processing
Signed-off-by: Michael Buesch <mb@bu3sch.de>
-rwxr-xr-xtoprammer2
-rw-r--r--util.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/toprammer b/toprammer
index ab20ee8..d3ceb49 100755
--- a/toprammer
+++ b/toprammer
@@ -609,7 +609,7 @@ def fileOut(filename, format, data):
def fileIn(filename, format):
if filename == "-":
- pass#TODO
+ data = sys.stdin.read()
else:
data = file(filename, "rb").read()
if format == "auto":
diff --git a/util.py b/util.py
index d784bf9..8e6dec2 100644
--- a/util.py
+++ b/util.py
@@ -27,6 +27,7 @@ class TOPException(Exception): pass
def parseHexdump(dump):
+ raise TOPException()
pass#TODO
def generateHexdump(mem):
bues.ch cgit interface