Explorar o código

cosmetic: don't word-wrap needlessly

Antoine Beaupré %!s(int64=9) %!d(string=hai) anos
pai
achega
49d7c240a0
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      borg/helpers.py

+ 1 - 4
borg/helpers.py

@@ -169,10 +169,7 @@ class Statistics:
         return self.summary.format(stats=self, label='This archive:')
 
     def __repr__(self):
-        fmt = "<{cls} object at {hash:#x} ({self.osize}, {self.csize}, {self.usize})>"
-        return fmt.format(cls=type(self).__name__,
-                          hash=id(self),
-                          self=self)
+        return "<{cls} object at {hash:#x} ({self.osize}, {self.csize}, {self.usize})>".format(cls=type(self).__name__, hash=id(self), self=self)
 
     @property
     def osize_fmt(self):