1.1 --- a/annotate.py Mon Feb 26 00:59:15 2007 +0100
1.2 +++ b/annotate.py Sun Mar 04 00:11:01 2007 +0100
1.3 @@ -1562,6 +1562,7 @@
1.4 """
1.5
1.6 self.path = path or [os.getcwd()]
1.7 + self.path.append(libdir)
1.8 self.modules = {}
1.9
1.10 def find_in_path(self, name):
2.1 --- a/lib/builtins.py Mon Feb 26 00:59:15 2007 +0100
2.2 +++ b/lib/builtins.py Sun Mar 04 00:11:01 2007 +0100
2.3 @@ -922,7 +922,12 @@
2.4 max_so_far = i
2.5 return max_so_far
2.6
2.7 -def range(start, end, step=None):
2.8 +def range(start_or_end, end=None, step=None):
2.9 + if end is None:
2.10 + start = 0
2.11 + end = start_or_end
2.12 + else:
2.13 + start = start_or_end
2.14 if start == end:
2.15 return []
2.16 elif start > end:
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/lib/time.py Sun Mar 04 00:11:01 2007 +0100
3.3 @@ -0,0 +1,27 @@
3.4 +#!/usr/bin/env python
3.5 +
3.6 +"""
3.7 +Time module prototypes.
3.8 +
3.9 +Copyright (C) 2007 Paul Boddie <paul@boddie.org.uk>
3.10 +
3.11 +This software is free software; you can redistribute it and/or
3.12 +modify it under the terms of the GNU General Public License as
3.13 +published by the Free Software Foundation; either version 2 of
3.14 +the License, or (at your option) any later version.
3.15 +
3.16 +This software is distributed in the hope that it will be useful,
3.17 +but WITHOUT ANY WARRANTY; without even the implied warranty of
3.18 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3.19 +GNU General Public License for more details.
3.20 +
3.21 +You should have received a copy of the GNU General Public
3.22 +License along with this library; see the file LICENCE.txt
3.23 +If not, write to the Free Software Foundation, Inc.,
3.24 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
3.25 +"""
3.26 +
3.27 +def clock():
3.28 + return float()
3.29 +
3.30 +# vim: tabstop=4 expandtab shiftwidth=4
4.1 --- a/simplified.py Mon Feb 26 00:59:15 2007 +0100
4.2 +++ b/simplified.py Sun Mar 04 00:11:01 2007 +0100
4.3 @@ -26,6 +26,13 @@
4.4 from compiler.visitor import ASTVisitor
4.5 import sys
4.6
4.7 +# Location of the built-in libraries.
4.8 +# NOTE: Change this if the package structure changes.
4.9 +
4.10 +import os
4.11 +
4.12 +libdir = os.path.join(os.path.split(__file__)[0], "lib")
4.13 +
4.14 # Exceptions.
4.15
4.16 class SimplifiedError(Exception):