1.1 --- a/micropython/table.py Sun Sep 12 21:54:04 2010 +0200
1.2 +++ b/micropython/table.py Mon Sep 13 01:44:37 2010 +0200
1.3 @@ -299,6 +299,9 @@
1.4 Return a list of object names supporting the given attribute 'names'.
1.5 """
1.6
1.7 + if not names:
1.8 + return self.table.keys()
1.9 +
1.10 possible = []
1.11 for objname, attributes in self.table.items():
1.12 found = 1
1.13 @@ -316,6 +319,9 @@
1.14 Return a list of object names supporting any of the given attribute 'names'.
1.15 """
1.16
1.17 + if not names:
1.18 + return []
1.19 +
1.20 possible = []
1.21 for objname, attributes in self.table.items():
1.22 found = 0