peer: raise NotImplementedError for abstract submit() method
authorAugie Fackler <augie@google.com>
Tue, 01 Mar 2016 16:37:56 -0500
changeset 28434 d549cbb5503d
parent 28433 3b67f27bb908
child 28435 176736afa886
peer: raise NotImplementedError for abstract submit() method Nothing should ever call this submit method directly as it should be overridden by concrete batcher implementations.
mercurial/peer.py
--- a/mercurial/peer.py	Thu Mar 03 14:29:19 2016 +0000
+++ b/mercurial/peer.py	Tue Mar 01 16:37:56 2016 -0500
@@ -39,7 +39,7 @@
             return resref
         return call
     def submit(self):
-        pass
+        raise NotImplementedError()
 
 class localbatch(batcher):
     '''performs the queued calls directly'''