source:
titan/mediathek/localhoster/lib/python2.7/lib2to3/fixes/fix_standarderror.py
@
40094
Last change on this file since 40094 was 40094, checked in by , 7 years ago | |
---|---|
File size: 450 bytes |
Line | |
---|---|
1 | # Copyright 2007 Google, Inc. All Rights Reserved. |
2 | # Licensed to PSF under a Contributor Agreement. |
3 | |
4 | """Fixer for StandardError -> Exception.""" |
5 | |
6 | # Local imports |
7 | from .. import fixer_base |
8 | from ..fixer_util import Name |
9 | |
10 | |
11 | class FixStandarderror(fixer_base.BaseFix): |
12 | BM_compatible = True |
13 | PATTERN = """ |
14 | 'StandardError' |
15 | """ |
16 | |
17 | def transform(self, node, results): |
18 | return Name(u"Exception", prefix=node.prefix) |
Note: See TracBrowser
for help on using the repository browser.