Add repr for RepoPath objects to aid debugging
authorJon Turney <jon.turney@dronecode.org.uk>
Mon, 8 Apr 2024 15:34:04 +0000 (16:34 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Wed, 10 Apr 2024 13:35:20 +0000 (14:35 +0100)
calm/package.py

index efc01c4b8defa76566a7de04f340649f4fb08fdf..0921f549cb3232f62d29ba788be8b7e666cd865a 100755 (executable)
@@ -84,6 +84,9 @@ class RepoPath():
     def move(self):
         return (os.path.join(self.arch, 'release', self.path), self.fn)
 
+    def __repr__(self):
+        return "RepoPath(%s, %s, %s)" % (self.arch, self.path, self.fn)
+
 
 # information we keep about a package
 class Package(object):
This page took 0.033392 seconds and 5 git commands to generate.