changeset 42:6e978ddf5135

self._export vs self.export, the function
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 15 Nov 2011 14:24:51 -0800
parents 0facc5466dbe
children 9e6c0f9725e3
files fetch.py
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/fetch.py	Tue Nov 15 14:06:02 2011 -0800
+++ b/fetch.py	Tue Nov 15 14:24:51 2011 -0800
@@ -118,24 +118,24 @@
 
 class VCSFetcher(Fetcher):
 
-    command = None
-
-    def call(*args, **kwargs):
-        assert command is not None, "Abstract base class"
-        call([self.command] + list(args), **kwargs)
+    command = None # name of the VCS command (currently unused)
 
     def __init__(self, url, export=True):
         """
         - export : whether to strip the versioning information
         """
         Fetcher.__init__(self, url)
-        self.export = export
+        self._export = export
         self.prog = self.type # name of app program
         self.vcs_dir = '.' + self.type # subdirectory for version control
 
+    def call(*args, **kwargs):
+        assert command is not None, "Abstract base class"
+        call([self.command] + list(args), **kwargs)
+
     def __call__(self, dest):
 
-        if self.subpath or self.export:
+        if self.subpath or self._export:
             # can only export with a subpath
             self.export(dest, subpath=self.subpath)
             return