diff options
Diffstat (limited to 'libbe/command/base.py')
-rw-r--r-- | libbe/command/base.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbe/command/base.py b/libbe/command/base.py index efba1b2..269141f 100644 --- a/libbe/command/base.py +++ b/libbe/command/base.py @@ -75,7 +75,7 @@ def get_command(command_name): >>> try: ... get_command('asdf') ... except UnknownCommand, e: - ... print e + ... print(e) Unknown command 'asdf' (No module named asdf) >>> repr(get_command('list')).startswith("<module 'libbe.command.list' from ") @@ -254,7 +254,7 @@ class Command (object): """One-line command description here. >>> c = Command() - >>> print c.help() + >>> print(c.help()) usage: be command [options] <BLANKLINE> Options: @@ -415,7 +415,7 @@ class Command (object): ... c._check_restricted_access(s, os.path.expanduser('~/.ssh/id_rsa')) ... except UserError, e: ... assert str(e).startswith('file access restricted!'), str(e) - ... print 'we got the expected error' + ... print('we got the expected error') we got the expected error >>> c._check_restricted_access(s, os.path.expanduser('~/x')) >>> c._check_restricted_access(s, os.path.expanduser('~/x/y')) @@ -527,7 +527,7 @@ class StorageCallbacks (object): def get_unconnected_storage(self): """ Callback for use by commands that need it. - + The returned Storage instance is may actually be connected, but commands that make use of the returned value should only make use of non-connected Storage methods. This is mainly @@ -595,7 +595,7 @@ class UserInterface (object): if self.io is not None: self.io.setup_command(command) if self.storage_callbacks is not None: - self.storage_callbacks.setup_command(command) + self.storage_callbacks.setup_command(command) command.restrict_file_access = self.restrict_file_access command._get_user_id = self._get_user_id |