##// END OF EJS Templates
Add an input argument to *all* Display constructors....
Add an input argument to *all* Display constructors. Change the ibrowse and other constructors from __init__(self, input=None, attrs=None) to __init__(self, input=None, *attrs) Move "import astyle" down as far as possible to avoid problems wth circular imports.

File last commit:

r557:7007b8bb
r953:9f0e1328
Show More
update_revnum.py
14 lines | 353 B | text/x-python | PythonLexer
#!/usr/bin/env python
""" Change the revision number in Release.py """
import os
import re
rev = os.popen('svnversion ..').read().strip()
print "current rev is",rev
assert ':' not in rev
rfile = open('../IPython/Release.py').read()
newcont = re.sub(r'revision\s*=.*', "revision = '%s'" % rev, rfile)
open('../IPython/Release.py','w').write(newcont)