diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2024-01-18 19:09:58 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-01-18 19:09:58 +0100 |
commit | cc7362d28bd9c43cb6839809f86e59874f2fe458 (patch) | |
tree | 1053748f5890c769d1e99806bc0c8bcffca6f0fe /libbe/command/diff.py | |
parent | 003bd13629d9db2f14156f97b74a4672e9ecdf77 (diff) | |
download | bugseverywhere-cc7362d28bd9c43cb6839809f86e59874f2fe458.tar.gz |
2to3 conversion of the repo.
Diffstat (limited to 'libbe/command/diff.py')
-rw-r--r-- | libbe/command/diff.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbe/command/diff.py b/libbe/command/diff.py index 1368654..d8aea37 100644 --- a/libbe/command/diff.py +++ b/libbe/command/diff.py @@ -89,7 +89,7 @@ class Diff (libbe.command.Command): try: subscriptions = libbe.diff.subscriptions_from_string( params['subscribe']) - except ValueError, e: + except ValueError as e: raise libbe.command.UserError(e.msg) bugdirs = self._get_bugdirs() for uuid,bugdir in sorted(bugdirs.items()): @@ -124,11 +124,11 @@ class Diff (libbe.command.Command): bugs = tree.child_by_path('/bugs') for bug_type in bugs: uuids.extend([bug.name for bug in bug_type]) - print >> self.stdout, '\n'.join(uuids) + print('\n'.join(uuids), file=self.stdout) else : rep = tree.report_string() if rep != None: - print >> self.stdout, rep + print(rep, file=self.stdout) return 0 def _long_help(self): |