Skip to content

Commit

Permalink
Replaced except X,Y: with except X as Y: as of PEP-3110 (#1137)
Browse files Browse the repository at this point in the history
This will also get us closer to python3.
See https://www.python.org/dev/peps/pep-3110/
  • Loading branch information
Arusekk authored and zachriggle committed Apr 30, 2018
1 parent 3d03a75 commit 20cb049
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/dashbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def main(args):
doc2dash.__main__.main.main( \
[ os.path.join(dstdir, "html"), "-d", dstdir, "-n", name, \
"-f", "-I", "index.html"], "doc2dash", False)
except SystemExit,e:
except SystemExit as e:
pass

# Insert a link to the online version.
Expand Down
2 changes: 1 addition & 1 deletion pwnlib/commandline/unhex.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def main(args):
sys.stdout.write(s.decode('hex'))
else:
sys.stdout.write(''.join(args.hex).decode('hex'))
except TypeError, e:
except TypeError as e:
sys.stderr.write(str(e) + '\n')

if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion pwnlib/tubes/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ def recv_raw(self, numb):

try:
data = self.proc.stdout.read(numb)
except IOError as (err, strerror):
except IOError:
pass

if not data:
Expand Down

0 comments on commit 20cb049

Please sign in to comment.