mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
10 lines
213 B
Python
10 lines
213 B
Python
from hgext import color
|
|
|
|
# ensure errors aren't buffered
|
|
testui = color.colorui()
|
|
testui.pushbuffer()
|
|
testui.write('buffered\n')
|
|
testui.warn('warning\n')
|
|
testui.write_err('error\n')
|
|
print repr(testui.popbuffer())
|