mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 04:52:49 +01:00
DummyIO: Check for double "installs"
This commit is contained in:
parent
4ccd8e989f
commit
92c8bbea1f
1 changed files with 1 additions and 0 deletions
|
|
@ -215,6 +215,7 @@ class DummyIO:
|
|||
return self.stdin.reads
|
||||
|
||||
def install(self):
|
||||
assert not self.installed, "DummyIO already installed"
|
||||
self.installed = True
|
||||
|
||||
self.orig_stdin = sys.stdin
|
||||
|
|
|
|||
Loading…
Reference in a new issue