f8233e2ca199

Mark _render_data methods as private.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 08 Oct 2009 18:16:08 -0400
parents 0d213b070f79
children 21e11e7dfca5
branches/tags (none)
files review/api.py

Changes

--- a/review/api.py	Thu Oct 08 18:12:44 2009 -0400
+++ b/review/api.py	Thu Oct 08 18:16:08 2009 -0400
@@ -312,7 +312,7 @@
         if not os.path.exists(path):
             os.mkdir(path)
         
-        data = self.render_data()
+        data = self._render_data()
         filename = sha1(data).hexdigest()
         objectpath = os.path.join(path, filename)
         
@@ -328,7 +328,7 @@
         if not self.delete_message:
             raise CannotDeleteObject
         
-        data = self.render_data()
+        data = self._render_data()
         filename = sha1(data).hexdigest()
         objectpath = os.path.join(repo.root, self.node, self.container, filename)
         
@@ -362,7 +362,7 @@
         self.lines = lines
         self.message = message
     
-    def render_data(self):
+    def _render_data(self):
         """Render the data of this comment into a string for writing to disk.
         
         You probably don't need to call this directly, the add_signoff method
@@ -412,7 +412,7 @@
         self.opinion = opinion
         self.message = message
     
-    def render_data(self):
+    def _render_data(self):
         """Render the data of this signoff into a string for writing to disk.
         
         You probably don't need to call this directly, the add_signoff method