also dont add tuples to lists sleepy man.
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Wed, 21 Dec 2011 08:34:08 +0000 (09:34 +0100)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Wed, 21 Dec 2011 08:34:08 +0000 (09:34 +0100)
librarian/dcparser.py

index cf4a7b9..534cd27 100644 (file)
@@ -134,7 +134,7 @@ class DCInfo(type):
                     try:
                         fields.index(field)
                     except ValueError:
-                        fields = (field,) + fields
+                        fields.insert(0, field)
 
         class_dict['FIELDS'] = tuple(fields)
         return super(DCInfo, meta).__new__(meta, classname, bases, class_dict)