diff mercurial/peer.py @ 28434:d549cbb5503d

peer: raise NotImplementedError for abstract submit() method Nothing should ever call this submit method directly as it should be overridden by concrete batcher implementations.
author Augie Fackler <augie@google.com>
date Tue, 01 Mar 2016 16:37:56 -0500
parents e6b56b2c1f26
children 8d38eab2777a
line wrap: on
line diff
--- 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'''