Revert 10874 changes to _Options.py and BookReport.py
svn: r10879
This commit is contained in:
		| @@ -268,7 +268,7 @@ class OptionParser(handler.ContentHandler): | ||||
|             self.o = {} | ||||
|         elif tag == "option": | ||||
|             self.oname = attrs['name'] | ||||
|             if 'length' in attrs: | ||||
|             if attrs.has_key('length'): | ||||
|                 self.an_o = [] | ||||
|             else: | ||||
|                 self.an_o = attrs['value'] | ||||
|   | ||||
| @@ -524,7 +524,7 @@ class BookParser(handler.ContentHandler): | ||||
|             self.o = {} | ||||
|         elif tag == "option": | ||||
|             self.an_o_name = attrs['name'] | ||||
|             if 'length' in attrs: | ||||
|             if attrs.has_key('length'): | ||||
|                 self.an_o_value = [] | ||||
|             else: | ||||
|                 converter = Utils.get_type_converter_by_name(attrs['type']) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user