summaryrefslogtreecommitdiff
path: root/doc
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
commit00dc6e33839b202a4d10034f14b3af126ed961cc (patch)
tree3a1f9a70149218c8fdbc9184f6be7078146cd86d /doc
parent1b966038502c0b386a6645d4b5125f623d0947bb (diff)
downloadpygments-git-00dc6e33839b202a4d10034f14b3af126ed961cc.tar.gz
Use print as a function so the example works in Python 3.
Diffstat (limited to 'doc')
-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: