| --- a/Lib/_pyio.py Thu Jun 28 01:45:48 2012 +0200 |
| +++ b/Lib/_pyio.py Thu Jun 28 12:21:26 2012 +0300 |
| @@ -173,6 +173,8 @@ |
| if "U" in modes: |
| if creating or writing or appending: |
| raise ValueError("can't use U and writing mode at once") |
| + warnings.warn("Use of 'U' mode is deprecated", |
| + DeprecationWarning) |
| reading = True |
| if text and binary: |
| raise ValueError("can't have text and binary mode at once") |