Commits

Mike Bayer committed 84ad898

os.devnull! woo

  • Participants
  • Parent commits a80ead6

Comments (0)

Files changed (1)

sliderepl/core.py

 
         def exec_silent(self, environ):
             old_stdout = sys.stdout
-            sys.stdout = open("/dev/null", "w")
+            sys.stdout = open(os.devnull, "w")
             for display, co in self.codeblocks:
                 exec_(co, environ)
             sys.stdout = old_stdout