summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Betts <edward@4angle.com>2018-11-04 07:51:02 +0000
committerEdward Betts <edward@4angle.com>2018-11-04 07:51:02 +0000
commit0342044ec7dcd26d6ab911c87977aa5055bb3336 (patch)
tree0d636e48205a2117c227c15e860618465c6bb2b6
parent0db8e281af377923115b894703b2b8beb8f1e9d5 (diff)
downloadpygments-0342044ec7dcd26d6ab911c87977aa5055bb3336.tar.gz
Use print as a function so the example works in Python 3.
-rw-r--r--doc/docs/quickstart.rst2
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: