]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_standarderror.py
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / lib2to3 / fixes / fix_standarderror.py
CommitLineData
4710c53d 1# Copyright 2007 Google, Inc. All Rights Reserved.\r
2# Licensed to PSF under a Contributor Agreement.\r
3\r
4"""Fixer for StandardError -> Exception."""\r
5\r
6# Local imports\r
7from .. import fixer_base\r
8from ..fixer_util import Name\r
9\r
10\r
11class FixStandarderror(fixer_base.BaseFix):\r
12 BM_compatible = True\r
13 PATTERN = """\r
14 'StandardError'\r
15 """\r
16\r
17 def transform(self, node, results):\r
18 return Name(u"Exception", prefix=node.prefix)\r