diff options
author | Ian Lee <IanLee1521@gmail.com> | 2014-12-20 20:14:00 -0800 |
---|---|---|
committer | Ian Lee <IanLee1521@gmail.com> | 2014-12-20 20:14:00 -0800 |
commit | 809a870514f2991a51e8faf47c2f6b59086ae609 (patch) | |
tree | b251dbc50d9ddcefb1aeef2a98ef9fc4148ba4a4 /testsuite/E21.py | |
parent | 1fcf60085b66e6df41e20b572cdcb2bda5639e93 (diff) | |
download | pep8-809a870514f2991a51e8faf47c2f6b59086ae609.tar.gz |
Make explicit error on print only emit if "print_function" is imported; issue #338issue-338
Diffstat (limited to 'testsuite/E21.py')
-rw-r--r-- | testsuite/E21.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/E21.py b/testsuite/E21.py index 96b55b8..44516e6 100644 --- a/testsuite/E21.py +++ b/testsuite/E21.py @@ -7,6 +7,13 @@ dict['key'] ['subkey'] = list[index] #: Okay spam(1) dict['key'] = list[index] +#: E211 +print ('abc') +#: Okay +print('abc') +#: Okay +from __future__ import print_function +print ('abc') # This is not prohibited by PEP8, but avoid it. |