diff options
Diffstat (limited to 'libbe/command/subscribe.py')
-rw-r--r-- | libbe/command/subscribe.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbe/command/subscribe.py b/libbe/command/subscribe.py index 5884a9a..8541970 100644 --- a/libbe/command/subscribe.py +++ b/libbe/command/subscribe.py @@ -143,7 +143,7 @@ class Subscribe (libbe.command.Command): types = params['types'].split(',') if len(params['id']) == 0: - params['id'] = bugdirs.keys() + params['id'] = list(bugdirs.keys()) for _id in params['id']: p = libbe.util.id.parse_user(bugdirs, _id) if p['type'] == 'bugdir': @@ -173,7 +173,7 @@ class Subscribe (libbe.command.Command): if params['list-all'] == True: subscriptions = [] - for bugdir in bugdirs.values(): + for bugdir in list(bugdirs.values()): bugdir.load_all_bugs() subscriptions.extend( get_bugdir_subscribers(bugdir, servers[0])) @@ -184,8 +184,8 @@ class Subscribe (libbe.command.Command): subscriptions.append(estr[len(TAG):]) if len(subscriptions) > 0: - print >> self.stdout, 'Subscriptions for %s:' % entity_name - print >> self.stdout, '\n'.join(subscriptions) + print('Subscriptions for %s:' % entity_name, file=self.stdout) + print('\n'.join(subscriptions), file=self.stdout) if params['list-all'] == True or params['list'] == True: storage.writeable = writeable return 0 |