79
82
for filename in self.__files:
80
83
filename = os.path.join(dir, filename)
82
fp = file(filename, "rU")
85
fp = open(filename, "rU")
108
111
for i in range(lineno, lineno + self.MAXLINES):
109
print self.__lines[i]
112
print(self.__lines[i])
110
113
except IndexError:
113
116
lineno += self.MAXLINES
115
118
while key is None:
116
key = raw_input(prompt)
120
key = raw_input(prompt)
117
124
if key not in ('', 'q'):
122
129
def setcopyright():
123
"""Set 'copyright' and 'credits' in __builtin__"""
124
__builtin__.copyright = _Printer("copyright", sys.copyright)
130
"""Set 'copyright' and 'credits' in builtins"""
131
builtins.copyright = _Printer("copyright", sys.copyright)
125
132
if sys.platform[:4] == 'java':
126
__builtin__.credits = _Printer(
133
builtins.credits = _Printer(
128
135
"Jython is maintained by the Jython developers (www.jython.org).")
130
__builtin__.credits = _Printer("credits", """\
137
builtins.credits = _Printer("credits", """\
131
138
Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
132
139
for supporting Python development. See www.python.org for more information.""")
133
140
here = os.path.dirname(os.__file__)
134
__builtin__.license = _Printer(
141
builtins.license = _Printer(
135
142
"license", "See http://www.python.org/%.3s/license.html" % sys.version,
136
143
["LICENSE.txt", "LICENSE"],
137
144
[os.path.join(here, os.pardir), here, os.curdir])