Commits

Jason R. Coombs committed fb997cf

Use shorter syntax with same semantics

Comments (0)

Files changed (1)

py/_io/capture.py

     """
     try:
         fd = f.fileno()
-        mode = mode and mode or f.mode
+        mode = mode or f.mode
     except AttributeError:
         if raising:
             raise