@@ -1254,7 +1254,7 @@ def _request_token_with_oauth(
1254
1254
"""Request a token from the SAS SASLogon service.
1255
1255
1256
1256
Supports four different flows:
1257
-
1257
+
1258
1258
- authenticate with a username & password and receive a token
1259
1259
- authenticate with a client id & secret and receive a token
1260
1260
- provide an authorization code and receive a token
@@ -1531,6 +1531,13 @@ def __init__(self, obj, session=None, threads=4):
1531
1531
# Store the current items to iterate over
1532
1532
self ._obj = obj
1533
1533
1534
+ def __enter__ (self ):
1535
+ return self
1536
+
1537
+ def __exit__ (self , exc_type , exc_val , exc_tb ):
1538
+ if self ._pool is not None :
1539
+ self ._pool .shutdown (wait = False )
1540
+
1534
1541
def __next__ (self ):
1535
1542
if self ._pool is None :
1536
1543
self ._pool = concurrent .futures .ThreadPoolExecutor (
@@ -1778,7 +1785,7 @@ class VersionInfo:
1778
1785
Release cadence for Viya 4. Should be one of 'stable' or 'LTS'.
1779
1786
release : str, optional
1780
1787
Release number for Viya 4. Two formats are currently possible:
1781
-
1788
+
1782
1789
- YYYY.R.U where R is the LTS release number in YYYY and U is the updates since R
1783
1790
- YYYY.MM where MM is the month of the release.
1784
1791
@@ -2028,6 +2035,7 @@ def request(verb, path, session=None, format="auto", **kwargs):
2028
2035
2029
2036
Returns
2030
2037
-------
2038
+ str, bytes, or requests.Response
2031
2039
2032
2040
"""
2033
2041
session = session or current_session ()
@@ -2111,6 +2119,7 @@ def request_link(obj, rel, **kwargs):
2111
2119
2112
2120
Returns
2113
2121
-------
2122
+ RestObj
2114
2123
2115
2124
"""
2116
2125
link = get_link (obj , rel )
@@ -2359,7 +2368,7 @@ def platform_version():
2359
2368
2360
2369
Returns
2361
2370
-------
2362
- str
2371
+ str
2363
2372
SAS Viya version number '3.5' or '4.0'
2364
2373
2365
2374
"""
0 commit comments