From c6388fc9fe576d6dd9b7daacbb1b74a39f699e24 Mon Sep 17 00:00:00 2001 From: Adam Yala Date: Wed, 22 Jul 2015 16:57:14 -0500 Subject: [PATCH] doc(quickstart): Update examples to use new-style classes Closes #565 --- doc/user/quickstart.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/user/quickstart.rst b/doc/user/quickstart.rst index 8d96437..53252d6 100644 --- a/doc/user/quickstart.rst +++ b/doc/user/quickstart.rst @@ -28,7 +28,7 @@ started writing an API: # Falcon follows the REST architectural style, meaning (among # other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. - class ThingsResource: + class ThingsResource(object): def on_get(self, req, resp): """Handles GET requests""" resp.status = falcon.HTTP_200 # This is the default status @@ -207,7 +207,7 @@ parameters, handling errors, and working with request and response bodies. return hook - class ThingsResource: + class ThingsResource(object): def __init__(self, db): self.db = db