From 5b0739d4ce284e7c82b5bdd0d9da8377f40dc555 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Fri, 28 Aug 2015 18:46:22 -0500
Subject: [PATCH] Loopy fix output to file from cmdline interface

---
 bin/loopy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/loopy b/bin/loopy
index c8cbea1c6..b47127740 100644
--- a/bin/loopy
+++ b/bin/loopy
@@ -186,8 +186,8 @@ def main():
         code, impl_arg_info = generate_code(kernel)
         codes.append(code)
 
-    if args.outfile:
-        outfile, = args.outfile
+    if args.outfile is not None:
+        outfile = args.outfile
     else:
         outfile = "-"
 
-- 
GitLab