| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1 | """This file is only retained for backwards compatibility. |
| 2 | It will be removed in the future. sre was moved to re in version 2.5. | ||||
| 3 | """ | ||||
| 4 | |||||
| 5 | import warnings | ||||
| 6 | warnings.warn("The sre module is deprecated, please import re.", | ||||
| 7 | DeprecationWarning, 2) | ||||
| 8 | |||||
| 9 | from re import * | ||||
| 10 | from re import __all__ | ||||
| Guido van Rossum | d8faa36 | 2007-04-27 19:54:29 +0000 | [diff] [blame] | 11 | |
| 12 | # old pickles expect the _compile() reconstructor in this module | ||||
| 13 | from re import _compile | ||||