diff options
author | Brett Cannon <brett@python.org> | 2014-10-10 13:41:08 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2014-10-10 13:41:08 -0400 |
commit | f8ec9be846a8649bcaed67be2685585468cd5410 (patch) | |
tree | 34052be60467a2ca784948c6834ffe92c90a5082 /test/regrtest_data/decimal_inference.py | |
parent | 9222fa275215db357efae1d1d6b676da84e85a14 (diff) | |
download | pylint-f8ec9be846a8649bcaed67be2685585468cd5410.tar.gz |
Emit an error when a print statement is used.
Part of issue #20.
Diffstat (limited to 'test/regrtest_data/decimal_inference.py')
-rw-r--r-- | test/regrtest_data/decimal_inference.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/regrtest_data/decimal_inference.py b/test/regrtest_data/decimal_inference.py index b47bc1c..00c9130 100644 --- a/test/regrtest_data/decimal_inference.py +++ b/test/regrtest_data/decimal_inference.py @@ -3,8 +3,8 @@ using setattr/locals :( 2007/02/17 update: .prec attribute is now detected by astroid :o) """ +from __future__ import print_function import decimal decimal.getcontext().prec = 200 -print decimal.getcontext().prec - +print(decimal.getcontext().prec) |