From beb49d5d9ebc43a5b6fa6dc1517894bb106f9377 Mon Sep 17 00:00:00 2001 From: Preston Landers Date: Fri, 6 Nov 2020 15:57:05 -0600 Subject: [PATCH] Fix markdown block. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 028ed1d..f3ba0db 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ This will trigger the UAC (User Access Control) prompt if necessary. This shows a typical usage pattern: -``` +```python import pyuac def main(): @@ -29,8 +29,9 @@ def main(): if __name__ == "__main__": if not pyuac.isUserAdmin(): print("Re-launching as admin!") - return pyuac.runAsAdmin() - main() + pyuac.runAsAdmin() + else: + main() ``` ## Requirements