|
|
@@ -220,7 +220,7 @@ class Cmdline(object): |
|
|
|
# Extract key=value pairs |
|
|
|
data = {} |
|
|
|
for keyval in keyvals: |
|
|
|
kv = keyval.split('=', 1) |
|
|
|
kv = keyval.split('=') |
|
|
|
if len(kv) != 2 or kv[0] == "": |
|
|
|
self.die("Error parsing key=value argument '%s'\n", keyval) |
|
|
|
data[kv[0]] = kv[1] |
|
|
@@ -262,10 +262,11 @@ class Cmdline(object): |
|
|
|
if not os.path.exists(filename): |
|
|
|
self.die("Error opening input file %s\n", filename) |
|
|
|
try: |
|
|
|
# zcat is _much_ faster than python's gzopen |
|
|
|
# zcat is much faster than python's gzopen. |
|
|
|
# We've checked that the file already exists |
|
|
|
process = subprocess.Popen(["zcat", "-f", filename], |
|
|
|
bufsize = -1, |
|
|
|
stdin = None, |
|
|
|
stdin = open(os.devnull), |
|
|
|
stderr = None, |
|
|
|
stdout = PIPE) |
|
|
|
infile = process.stdout |
|
|
|