1.1 --- a/micropython/data.py Sat Jan 17 23:25:17 2009 +0100
1.2 +++ b/micropython/data.py Sun Jan 18 02:09:41 2009 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Data classes.
1.6
1.7 -Copyright (C) 2007, 2008 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2007, 2008, 2009 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -152,8 +152,9 @@
1.13 def make_global(self, name):
1.14 if not self.namespace.has_key(name):
1.15 self.globals.add(name)
1.16 + return 1
1.17 else:
1.18 - raise InspectError(self.full_name(), self.astnode, "Name %r is both global and local in %r" % (name, self.full_name()))
1.19 + return 0
1.20
1.21 def get_assignments(self, name):
1.22 if self.assignments.has_key(name):
1.23 @@ -788,8 +789,9 @@
1.24 def make_global(self, name):
1.25 if name not in self.argnames and not self.has_key(name):
1.26 self.globals.add(name)
1.27 + return 1
1.28 else:
1.29 - raise InspectError(self.full_name(), self.astnode, "Name %r is global and local in %r" % (name, self.full_name()))
1.30 + return 0
1.31
1.32 def parameters(self):
1.33