diff options
| author | Josh Ferrell <josh@vector35.com> | 2023-04-25 13:00:44 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2023-04-25 13:00:44 -0400 |
| commit | 8c3e3cf501d42c6abcabb5d3891c804dcfd8de86 (patch) | |
| tree | b77dfd7eb5093a538acd72f9d18fe551fd1f8614 /python | |
| parent | 999a56de15ce8b5b4699fe024ba5d77a43fe4f3e (diff) | |
Fix enterprise example formatting
Diffstat (limited to 'python')
| -rw-r--r-- | python/enterprise.py | 12 |
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): |
