diff options
author | Edward Betts <edward@4angle.com> | 2018-11-04 07:51:02 +0000 |
---|---|---|
committer | Edward Betts <edward@4angle.com> | 2018-11-04 07:51:02 +0000 |
commit | 0342044ec7dcd26d6ab911c87977aa5055bb3336 (patch) | |
tree | 0d636e48205a2117c227c15e860618465c6bb2b6 /doc | |
parent | 0db8e281af377923115b894703b2b8beb8f1e9d5 (diff) | |
download | pygments-0342044ec7dcd26d6ab911c87977aa5055bb3336.tar.gz |
Use print as a function so the example works in Python 3.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/docs/quickstart.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/docs/quickstart.rst b/doc/docs/quickstart.rst index dba7698a..d994f74e 100644 --- a/doc/docs/quickstart.rst +++ b/doc/docs/quickstart.rst @@ -39,7 +39,7 @@ Here is a small example for highlighting Python code: from pygments.formatters import HtmlFormatter code = 'print "Hello World"' - print highlight(code, PythonLexer(), HtmlFormatter()) + print(highlight(code, PythonLexer(), HtmlFormatter())) which prints something like this: |