Use sys.byteorder, getting rid of ttLib.endian


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@527 4cde692c-a291-49d1-8350-778aa11640f8
diff --git a/Lib/fontTools/ttLib/sfnt.py b/Lib/fontTools/ttLib/sfnt.py
index e94a516..cc1a022 100644
--- a/Lib/fontTools/ttLib/sfnt.py
+++ b/Lib/fontTools/ttLib/sfnt.py
@@ -12,6 +12,7 @@
 a table's length chages you need to rewrite the whole file anyway.
 """
 
+import sys
 import struct, sstruct
 import Numeric
 import os
@@ -215,7 +216,7 @@
 	if remainder:
 		data = data + '\0' * (4-remainder)
 	a = Numeric.fromstring(struct.pack(">l", start) + data, Numeric.Int32)
-	if ttLib.endian <> "big":
+	if sys.byteorder <> "big":
 		a = a.byteswapped()
 	return Numeric.add.reduce(a)