cleanup: use NotImplementedError instead of NotImplemented stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 31 Jul 2018 13:06:20 +0200
branchstable
changeset 3916 b103685a082b
parent 3915 3d0fa4a94871
child 3917 ca7f02c9fa57
cleanup: use NotImplementedError instead of NotImplemented Caught by pyflakes.
hgext3rd/evolve/stablerange.py
--- a/hgext3rd/evolve/stablerange.py	Tue Jul 24 00:52:14 2018 +0530
+++ b/hgext3rd/evolve/stablerange.py	Tue Jul 31 13:06:20 2018 +0200
@@ -157,29 +157,29 @@
     @abc.abstractmethod
     def subranges(self, repo, rangeid):
         """return the stable sub-ranges of a rangeid"""
-        raise NotImplemented()
+        raise NotImplementedError()
 
     @abc.abstractmethod
     def revsfromrange(self, repo, rangeid):
         """return revision contained in a range"""
-        raise NotImplemented()
+        raise NotImplementedError()
 
     @abc.abstractmethod
     def depthrev(self, repo, rev):
         """depth a revision"""
         # Exist to allow basic implementation to ignore the depthcache
         # Could be demoted to _depthrev.
-        raise NotImplemented()
+        raise NotImplementedError()
 
     @abc.abstractmethod
     def warmup(self, repo, upto=None):
         """warmup the stable range cache"""
-        raise NotImplemented()
+        raise NotImplementedError()
 
     @abc.abstractmethod
     def rangelength(self, repo, rangeid):
         """number of revision in <range>"""
-        raise NotImplemented()
+        raise NotImplementedError()
 
     def _slicepoint(self, repo, rangeid):
         """find the standard slicing point for a range"""