diff options
author | Yaroslav Halchenko <debian@onerussian.com> | 2015-12-19 13:59:42 -0500 |
---|---|---|
committer | Yaroslav Halchenko <debian@onerussian.com> | 2015-12-21 23:06:33 -0500 |
commit | 8ab34764814fc62981300bcf2d5f2dfc16febc99 (patch) | |
tree | 66fb416e39c06499072a33269b5141d8bdc11b77 /docs/source | |
parent | 22ab610d6f16cdda163eafb5793afc4da26049a1 (diff) | |
download | boto-8ab34764814fc62981300bcf2d5f2dfc16febc99.tar.gz |
BF(PY3): use except ... as syntax instead of except ...,
was done via cmdline
git grep -l 'except.*, [a-z]\+:' | xargs sed -ie 's|\(except.*\), \([a-z]*:\)|\1 as \2|g'
Diffstat (limited to 'docs/source')
-rw-r--r-- | docs/source/conf.py | 2 | ||||
-rw-r--r-- | docs/source/swf_tut.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py index 4fbbf3fc..aa32edc0 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -31,7 +31,7 @@ github_project_url = 'https://github.com/boto/boto/' try: release = os.environ.get('SVN_REVISION', 'HEAD') print release -except Exception, e: +except Exception as e: print e html_title = "boto v%s" % version diff --git a/docs/source/swf_tut.rst b/docs/source/swf_tut.rst index ffbacfd2..7a2aef7f 100644 --- a/docs/source/swf_tut.rst +++ b/docs/source/swf_tut.rst @@ -338,7 +338,7 @@ The workers only need to know which task lists to poll. try: print 'working on activity from tasklist %s at %i' % (self.task_list, time.time()) self.activity(activity_task.get('input')) - except Exception, error: + except Exception as error: self.fail(reason=str(error)) raise error |