From 9e3cf9edf76e14d7238a4e2a0f35020690279c71 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 22 Oct 2018 20:23:50 +0200 Subject: [PATCH] Use "with" context manager in examples --- docs/source/resources/AutoAuthorization.rst | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/docs/source/resources/AutoAuthorization.rst b/docs/source/resources/AutoAuthorization.rst index d7a099fe..b5f3a94a 100644 --- a/docs/source/resources/AutoAuthorization.rst +++ b/docs/source/resources/AutoAuthorization.rst @@ -35,11 +35,8 @@ Example: password="password" # (if you have one) ) - app.start() - - print(app.get_me()) - - app.stop() + with app: + print(app.get_me()) Sign Up ------- @@ -67,8 +64,5 @@ Example: last_name="" # Can be an empty string ) - app.start() - - print(app.get_me()) - - app.stop() \ No newline at end of file + with app: + print(app.get_me())