]> scripts.mit.edu Git - wizard.git/commitdiff
NotImplemented -> NotImplementedError.
authorEdward Z. Yang <ezyang@mit.edu>
Thu, 5 Nov 2009 18:52:23 +0000 (13:52 -0500)
committerEdward Z. Yang <ezyang@mit.edu>
Thu, 5 Nov 2009 18:52:23 +0000 (13:52 -0500)
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
wizard/app/__init__.py
wizard/install/__init__.py

index be8ba5529960573f1533c3860d60bf1c5613f436..cd518c416bb05833b6cfd05de317d987b28b167b 100644 (file)
@@ -185,7 +185,7 @@ class Application(object):
         take a :class:`wizard.deploy.Deployment` as a parameter.)  Subclasses should
         provide an implementation.
         """
-        raise NotImplemented
+        raise NotImplementedError
     def upgrade(self, deployment, version, options):
         """
         Run for 'wizard upgrade' to upgrade database schemas and other
@@ -193,7 +193,7 @@ class Application(object):
         upgraded.  This assumes that the current working directory is the
         deployment.  Subclasses should provide an implementation.
         """
-        raise NotImplemented
+        raise NotImplementedError
     def backup(self, deployment, outdir, options):
         """
         Run for 'wizard backup' and upgrades to backup database schemas
@@ -206,7 +206,7 @@ class Application(object):
             Static user files may not need to be backed up, since in
             many applications upgrades do not modify static files.
         """
-        raise NotImplemented
+        raise NotImplementedError
     def restore(self, deployment, backup_dir, options):
         """
         Run for 'wizard restore' and failed upgrades to restore database
@@ -214,20 +214,20 @@ class Application(object):
         that the current working directory is the deployment.  Subclasses
         should provide an implementation.
         """
-        raise NotImplemented
+        raise NotImplementedError
     def detectVersion(self, deployment):
         """
         Checks source files to determine the version manually.  This assumes
         that the current working directory is the deployment.  Subclasses
         should provide an implementation.
         """
-        raise NotImplemented
+        raise NotImplementedError
     def download(self, version):
         """
         Returns a URL that can be used to download a tarball of ``version`` of
         this application.
         """
-        raise NotImplemented
+        raise NotImplementedError
     def checkWeb(self, deployment, output=None):
         """
         Checks if the autoinstall is viewable from the web.  To get
@@ -243,7 +243,7 @@ class Application(object):
             page does not contain the features you search for.  Try
             not to depend on pages that are not the main page.
         """
-        raise NotImplemented
+        raise NotImplementedError
     def checkConfig(self, deployment):
         """
         Checks whether or not an autoinstall has been configured/installed
@@ -253,7 +253,7 @@ class Application(object):
         # XXX: Unfortunately, this doesn't quite work because we package
         # bogus config files in the -scripts versions of installs.  Maybe
         # we should check a hash or something?
-        raise NotImplemented
+        raise NotImplementedError
     @staticmethod
     def make(name):
         """Makes an application, but uses the correct subtype if available."""
index bec70d8428fd2ab6d9df15c397a1626f79f8c468..87ade20e0c557aad1c94aa75747780b9fbb84562 100644 (file)
@@ -74,7 +74,7 @@ class Strategy(object):
         strategy.  It also detects if computation is possible, and
         raises :exc:`StrategyFailed` if it isn't.
         """
-        raise NotImplemented
+        raise NotImplementedError
     def execute(self, options):
         """
         Performs effectful computations associated with this strategy,
@@ -82,7 +82,7 @@ class Strategy(object):
         undefined if :meth:`prepare` was not called first.  If this
         method throws an exception, it should be treated as fatal.
         """
-        raise NotImplemented
+        raise NotImplementedError
 
 class EnvironmentStrategy(Strategy):
     """