diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-26 12:11:32 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-26 12:11:32 +0000 |
| commit | b7b360f03d05dbf0e7a69407db982f8d8772e724 (patch) | |
| tree | 24045f0bddd87c3a528a2201ccbcf6f4adf620f0 /docutils/test/test_transforms | |
| parent | 44691d6bbdbafdec4f206564b45997ec54b57732 (diff) | |
| download | docutils-b7b360f03d05dbf0e7a69407db982f8d8772e724.tar.gz | |
py3: Switch to print functions
Remove all uses of print as a statement. This includes comments, many of
which are simply removed as noise (they're in version control and can be
re-added later, if necessary).
Signed-off-by: Stephen Finucane <stephen@that.guru>
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8346 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_transforms')
| -rw-r--r-- | docutils/test/test_transforms/test_smartquotes.py | 10 | ||||
| -rw-r--r-- | docutils/test/test_transforms/test_strip_elements_with_class.py | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/docutils/test/test_transforms/test_smartquotes.py b/docutils/test/test_transforms/test_smartquotes.py index e65c5aa6f..9336838c5 100644 --- a/docutils/test/test_transforms/test_smartquotes.py +++ b/docutils/test/test_transforms/test_smartquotes.py @@ -18,7 +18,7 @@ Test module for universal.SmartQuotes transform. """ -from __init__ import DocutilsTestSupport # must be imported before docutils +from __init__ import DocutilsTestSupport # must be imported before docutils from docutils.transforms.universal import SmartQuotes from docutils.parsers.rst import Parser @@ -72,13 +72,13 @@ Do not "educate" quotes ``inside "literal" text`` and :: .. role:: python(code) :class: python -Keep quotes straight in code and math: +Keep quotes straight in code and math: :code:`print "hello"` :python:`print("hello")` :math:`1' 12"`. .. code:: - print "hello" - + print("hello") + .. math:: f'(x) = df(x)/dx @@ -105,7 +105,7 @@ u"""\ 1' 12" . <literal_block classes="code" xml:space="preserve"> - print "hello" + print("hello") <math_block xml:space="preserve"> f'(x) = df(x)/dx """], diff --git a/docutils/test/test_transforms/test_strip_elements_with_class.py b/docutils/test/test_transforms/test_strip_elements_with_class.py index bbb99cbb0..3c3f40aea 100644 --- a/docutils/test/test_transforms/test_strip_elements_with_class.py +++ b/docutils/test/test_transforms/test_strip_elements_with_class.py @@ -37,7 +37,7 @@ this is ham .. code:: :class: spam - print "spam" + print("spam") .. image:: spam.jpg :class: spam |
