Skip to content

Commit

Permalink
Fix on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigc committed Sep 14, 2020
1 parent ecdc6bb commit da62ef6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/web/examples/simple.rtl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This example demostrates how to render a page using a third-party template
system.

Usage:
$ twistd -n web --process=.rtl=twisted.web.script.ResourceTemplate --path /path/to/examples/
$ twistd -n web --path /path/to/examples --process=.rtl=twisted.web.script.ResourceTemplate

And make sure Quixote is installed.
"""
Expand All @@ -17,7 +17,7 @@ from twisted.web.resource import Resource
class ExampleResource(Resource):

def render_GET(self, request):
"""\
output = """\
<HTML>
<HEAD><TITLE> Welcome To Twisted Python </title></head>

Expand All @@ -26,6 +26,7 @@ class ExampleResource(Resource):
'<LI>';i
"""</ul></body>
</html>"""
return output.encode("utf8")


resource = ExampleResource()
Expand Down

0 comments on commit da62ef6

Please sign in to comment.