summaryrefslogtreecommitdiff
path: root/python/enterprise.py
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2023-04-25 13:00:44 -0400
committerJosh Ferrell <josh@vector35.com>2023-04-25 13:00:44 -0400
commit8c3e3cf501d42c6abcabb5d3891c804dcfd8de86 (patch)
treeb77dfd7eb5093a538acd72f9d18fe551fd1f8614 /python/enterprise.py
parent999a56de15ce8b5b4699fe024ba5d77a43fe4f3e (diff)
Fix enterprise example formatting
Diffstat (limited to 'python/enterprise.py')
-rw-r--r--python/enterprise.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/enterprise.py b/python/enterprise.py
index c0eb4830..c6c047c3 100644
--- a/python/enterprise.py
+++ b/python/enterprise.py
@@ -321,12 +321,12 @@ class LicenseCheckout:
Helper class for scripts to make use of a license checkout in a scope.
:Example:
- enterprise.connect()
- enterprise.authenticate_with_credentials("username", "password")
- with enterprise.LicenseCheckout():
- # Do some operation
- with open_view("/bin/ls") as bv: # e.g.
- print(hex(bv.start))
+ >>> enterprise.connect()
+ >>> enterprise.authenticate_with_credentials("username", "password")
+ >>> with enterprise.LicenseCheckout():
+ ... # Do some operation
+ ... with open_view("/bin/ls") as bv: # e.g.
+ ... print(hex(bv.start))
# License is released at end of scope
"""
def __init__(self, duration=900, _cache=True, release=True):