##// END OF EJS Templates
Fix exception color problems in win32....
Fix exception color problems in win32. In all the recent work to have the test suite play nice with doctest of full ipython sessions, I inadvertedly started sending exceptions directly to sys.stderr. On windows we MUST go via Term.cerr, which uses pyreadline to handle color escapes, while sys.stderr just shows garbage on screen. As of this revision, the test suite passes fully on win32 and linux, and interactive use also seems OK on all fronts. We're getting closer to RC status...

File last commit:

r2146:f57d8b10 merge
r2459:e687d797
Show More
update_revnum.py
32 lines | 711 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Change the revision number in release.py
This edits in-place release.py to update the revision number from bzr info.
Usage:
./update_revnum.py"""
import os
import pprint
import re
from toollib import *
if __name__ == '__main__':
ver = version_info()
pprint.pprint(ver)
rfile = open('../IPython/core/release.py','rb').read()
newcont = re.sub(r'revision\s*=.*',
"revision = '%s'" % ver['revno'],
rfile)
newcont = re.sub(r'^branch\s*=[^=].*',
"branch = '%s'" % ver['branch-nick'],
newcont)
f = open('../IPython/core/release.py','wb')
f.write(newcont)
f.close()