Skip to content

Commit 6076e99

Browse files
committed
fixed doc examples
1 parent 5165c8c commit 6076e99

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

doc/index.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ A slightly more low-level way to interact with the environment is to use the ser
8080
methods directly::
8181

8282
>>> from pprint import pprint
83-
>>> from sasctl import Session, folders
83+
>>> from sasctl import Session
84+
>>> from sasctl.services import folders
8485

8586
>>> with Session(host, username, password):
8687
... folders = folders.list_folders()
@@ -102,10 +103,10 @@ The most basic way to interact with the server is simply to call REST functions
102103
directly, though in general, this is not recommended.::
103104

104105
>>> from pprint import pprint
105-
>>> from sasctl import Session, get
106+
>>> from sasctl import Session
106107

107-
>>> with Session(host, username, password):
108-
... folders = get('/folders')
108+
>>> with Session(host, username, password) as s:
109+
... folders = s.get('/folders')
109110
... pprint(folders)
110111

111112
{'links': [{'href': '/folders/folders',

src/sasctl/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
__version__ = '1.0.0'
88
__author__ = 'SAS'
9-
__credits__ = ['Yi Jian Ching, Lucas De Paula, Peter Tobac, Jon Walker']
9+
__credits__ = ['Yi Jian Ching, Lucas De Paula, Peter Tobac, Chris Toth, Jon '
10+
'Walker']
1011
__license__ = 'Apache 2.0'
1112
__copyright__ = 'Copyright © 2019, SAS Institute Inc., ' \
1213
'Cary, NC, USA. All Rights Reserved.'

0 commit comments

Comments
 (0)