changeset 1047:16fe82c3fd71

graphfile repr() Ignore-this: efe8005bd2af301d1879fded3491435f
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 29 May 2014 06:48:08 +0000
parents 3b3d4e433db3
children 86732ba7d9ae
files light9/rdfdb/graphfile.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/light9/rdfdb/graphfile.py	Thu May 29 06:47:11 2014 +0000
+++ b/light9/rdfdb/graphfile.py	Thu May 29 06:48:08 2014 +0000
@@ -169,5 +169,10 @@
         f.close()
         self.lastWriteTimestamp = os.path.getmtime(tmpOut)
         os.rename(tmpOut, self.path)
-        iolog.info("%s rewrote in %.1f ms", self.path, serializeTime * 1000)
+        iolog.info("%s rewrote in %.1f ms",
+                   self.path, serializeTime * 1000)
         
+    def __repr__(self):
+        return "%s(path=%r, uri=%r, ...)" % (
+            self.__class__.__name__, self.path, self.uri)
+