tests/test-ui-color.py
changeset 43076 2372284d9457
parent 37942 32bc3815efae
child 43080 86e4daa2d54c
--- a/tests/test-ui-color.py	Sat Oct 05 10:29:34 2019 -0400
+++ b/tests/test-ui-color.py	Sun Oct 06 09:45:02 2019 -0400
@@ -5,15 +5,13 @@
     dispatch,
     ui as uimod,
 )
-from mercurial.utils import (
-    stringutil,
-)
+from mercurial.utils import stringutil
 
 # ensure errors aren't buffered
 testui = uimod.ui()
 testui.pushbuffer()
-testui.write((b'buffered\n'))
-testui.warn((b'warning\n'))
+testui.write(b'buffered\n')
+testui.warn(b'warning\n')
 testui.write_err(b'error\n')
 print(stringutil.pprint(testui.popbuffer(), bprefix=True).decode('ascii'))
 
@@ -34,6 +32,7 @@
 def runcmd():
     dispatch.dispatch(dispatch.request([b'version', b'-q'], ui_))
 
+
 runcmd()
 print("colored? %s" % (ui_._colormode is not None))
 runcmd()