diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-03-26 16:45:52 +0200 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-03-26 16:45:52 +0200 |
commit | 8bc29e8aa88b13b4c64e8d83968c8c21320d5757 (patch) | |
tree | 3d48354c14549388dfe47e7c0fb94f31cf07e2f8 /pylint/test/functional/docstrings.py | |
parent | 65d557e7c1f5e7b224621b6c18aa930b891b8da4 (diff) | |
download | pylint-8bc29e8aa88b13b4c64e8d83968c8c21320d5757.tar.gz |
Try to make the tests compatible with both Python 2 and Python 3.
Diffstat (limited to 'pylint/test/functional/docstrings.py')
-rw-r--r-- | pylint/test/functional/docstrings.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pylint/test/functional/docstrings.py b/pylint/test/functional/docstrings.py index 8b92b08..eccb057 100644 --- a/pylint/test/functional/docstrings.py +++ b/pylint/test/functional/docstrings.py @@ -1,6 +1,6 @@ -# pylint: disable=R0201,print-statement
+# pylint: disable=R0201
# -1: [missing-docstring]
-__revision__ = ''
+from __future__ import print_function
# +1: [empty-docstring]
def function0():
@@ -9,15 +9,15 @@ def function0(): # +1: [missing-docstring]
def function1(value):
# missing docstring
- print value
+ print(value)
def function2(value):
"""docstring"""
- print value
+ print(value)
def function3(value):
"""docstring"""
- print value
+ print(value)
# +1: [missing-docstring]
class AAAA(object):
|