Utilities/binplistlib.py

changeset 4544
5145cf800bb0
parent 4436
52ec6b6b3432
child 4631
5c1a96925da4
--- a/Utilities/binplistlib.py	Wed Nov 04 16:25:25 2015 +0100
+++ b/Utilities/binplistlib.py	Wed Nov 04 16:40:08 2015 +0100
@@ -119,7 +119,7 @@
         
         @return object representation (string)
         """
-        return "Uid(%d)" % self
+        return "Uid({0:d})".format(self)
 
 
 class Data(bytes):
@@ -527,7 +527,6 @@
         actual_length = length * 2
         data = self.contents[
             self.currentOffset:self.currentOffset + actual_length]
-        # unpack not needed?!! data = unpack(">%ds" % (actual_length), data)[0]
         self.currentOffset += actual_length
         return data.decode('utf_16_be')
     
@@ -610,7 +609,7 @@
         
         @return object representation (string)
         """
-        return "<HashableWrapper: %s>" % [self.value]
+        return "<HashableWrapper: {0}>".format([self.value])
 
 
 class BoolWrapper(object):
@@ -631,7 +630,7 @@
         
         @return object representation (string)
         """
-        return "<BoolWrapper: %s>" % self.value
+        return "<BoolWrapper: {0}>".format(self.value)
 
 
 class PlistWriter(object):

eric ide

mercurial