changeset 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 3b67f27bb908
children 176736afa886
files mercurial/peer.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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'''