From da62ef631f112897aef02660fb4256dbfbd37ebf Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Mon, 14 Sep 2020 15:11:00 -0700 Subject: [PATCH] Fix on Python 3 --- docs/web/examples/simple.rtl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/web/examples/simple.rtl b/docs/web/examples/simple.rtl index fbc08ff662f..36cedf6c1a2 100644 --- a/docs/web/examples/simple.rtl +++ b/docs/web/examples/simple.rtl @@ -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. """ @@ -17,7 +17,7 @@ from twisted.web.resource import Resource class ExampleResource(Resource): def render_GET(self, request): - """\ + output = """\ Welcome To Twisted Python @@ -26,6 +26,7 @@ class ExampleResource(Resource): '
  • ';i """ """ + return output.encode("utf8") resource = ExampleResource()