diff options
Diffstat (limited to 'libbe/command')
-rw-r--r-- | libbe/command/base.py | 2 | ||||
-rw-r--r-- | libbe/command/init.py | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/libbe/command/base.py b/libbe/command/base.py index 269141f..806d880 100644 --- a/libbe/command/base.py +++ b/libbe/command/base.py @@ -492,9 +492,7 @@ class StringInputOutput (InputOutput): """ def __init__(self): stdin = io.StringIO() - stdin.encoding = 'utf-8' stdout = io.StringIO() - stdout.encoding = 'utf-8' InputOutput.__init__(self, stdin, stdout) def set_stdin(self, stdin_string): diff --git a/libbe/command/init.py b/libbe/command/init.py index 8640ae4..fe85707 100644 --- a/libbe/command/init.py +++ b/libbe/command/init.py @@ -38,7 +38,7 @@ class Init (libbe.command.Command): >>> cmd = Init() >>> dir = libbe.util.utility.Dir() - >>> vcs = libbe.storage.vcs.vcs_by_name('None') + >>> vcs = libbe.storage.vcs.vcs_by_name(None) >>> vcs.repo = dir.path >>> try: ... vcs.connect() @@ -98,7 +98,7 @@ class Init (libbe.command.Command): self.ui.storage_callbacks.set_storage(storage) bd = libbe.bugdir.BugDir(storage, from_storage=False) self.ui.storage_callbacks.set_bugdirs({bd.uuid: bd}) - if bd.storage.name is not 'None': + if bd.storage.name is not None: print('Using %s for revision control.' % storage.name, file=self.stdout) else: print('No revision control detected.', file=self.stdout) |