★ wanayoo — archive 1999 https://github.com/ipython/ipython/pull/2061Nouvelle recherche | Portail wanayoo
Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

use explicit tuple in exception #2061

Merged
merged 1 commit into from about 2 years ago

2 participants

Matthias Bussonnier Fernando Perez
Matthias Bussonnier
Collaborator

fixes #2056

Do we want to try enforcing pep 3110 and use as in every exceptions that uses , ?

Fernando Perez
Owner

Yes, I think we should follow pep 3110. There may be more of these small errors lying around. I'll merge this fix now, thanks!

Fernando Perez fperez closed this
Fernando Perez fperez merged commit 6dc11dc into from
Matthias Bussonnier Carreau referenced this pull request
Merged

conform to pep 3110 #2064

Matthias Bussonnier Carreau referenced this pull request from a commit in Carreau/ipython
Matthias Bussonnier Carreau use explicit tuple in exception …
fixes #2056

backported to 0.13.1 from PR #2061
2024c86
Min RK minrk referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Min RK minrk referenced this pull request from a commit
Min RK minrk Backport PR #2061: use explicit tuple in exception …
fixes #2056

Do we want to try enforcing [pep 3110](http://www.python.org/dev/peps/pep-3110/) and use `as` in every exceptions that uses `,` ?
e4eeb65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 30, 2012
  1. Matthias Bussonnier

    use explicit tuple in exception …

    fixes #2056
    Carreau authored
This page is out of date. Refresh to see the latest.
Show diff stats Hide diff stats
Showing 1 changed file with 1 addition and 1 deletion.
  1. +1 −1  IPython/core/magics/osm.py
2  IPython/core/magics/osm.py
View
@@ -684,7 +684,7 @@ def pycat(self, parameter_s=''):
try :
cont = self.shell.find_user_code(parameter_s)
- except ValueError, IOError:
+ except (ValueError, IOError):
print "Error: no such file, variable, URL, history range or macro"
return
Something went wrong with that request. Please try again.