]> arthur.barton.de Git - bup.git/commit
BaseConn: let _read/_readline raise NotImplementedError
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 13 Dec 2019 20:55:53 +0000 (21:55 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 1 Mar 2020 22:54:16 +0000 (16:54 -0600)
commitc7feeda0a6d7c97a218c0a6e8c0338f53a5d882a
tree04babf1ddae5f06bb54aaabddd2744c9293d88c6
parent89cd30c0d82c2b71e6fe14de7ad210f635b38f91
BaseConn: let _read/_readline raise NotImplementedError

This way, it's easier to understand the code, since these
functions aren't referenced without existing in BaseConn.

Also change has_input() to raise NotImplementedError instead
of trying to instantiate NotImplemented - the latter is just
a singleton to return from the rich comparison methods.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/helpers.py