minor refactoring


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@340 4cde692c-a291-49d1-8350-778aa11640f8
diff --git a/Lib/fontTools/ttLib/tables/otBase.py b/Lib/fontTools/ttLib/tables/otBase.py
index 9d18cab..ceb1571 100644
--- a/Lib/fontTools/ttLib/tables/otBase.py
+++ b/Lib/fontTools/ttLib/tables/otBase.py
@@ -392,9 +392,8 @@
 			raise    # XXX on KeyError, raise nice error
 		value = conv.xmlRead(attrs, content, font)
 		if conv.repeat:
-			try:
-				seq = getattr(self, conv.name)
-			except AttributeError:
+			seq = getattr(self, conv.name, None)
+			if seq is None:
 				seq = []
 				setattr(self, conv.name, seq)
 			seq.append(value)
diff --git a/Lib/fontTools/ttLib/tables/otConverters.py b/Lib/fontTools/ttLib/tables/otConverters.py
index 130e1b7..10cc02e 100644
--- a/Lib/fontTools/ttLib/tables/otConverters.py
+++ b/Lib/fontTools/ttLib/tables/otConverters.py
@@ -142,10 +142,11 @@
 		if Format is not None:
 			table.Format = int(Format)
 		for element in content:
-			if type(element) <> TupleType:
-				continue
-			name, attrs, content = element
-			table.fromXML((name, attrs, content), font)
+			if type(element) == TupleType:
+				name, attrs, content = element
+				table.fromXML((name, attrs, content), font)
+			else:
+				pass
 		return table