Skip to content

Commit 39bb7bf

Browse files
committed
Fixed sample code
I had to add the quotes around the pseudo code. Sphinx won't display this correctly otherwise (it is trying to parse the text).
1 parent e46f6c2 commit 39bb7bf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

splunklib/binding.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def delete(self, path_segment, owner=None, app=None, sharing=None, **query):
496496
497497
c = binding.connect(...)
498498
c.delete('saved/searches/boris') == \\
499-
{'body': ...a response reader object...,
499+
{'body': '...a response reader object...',
500500
'headers': [('content-length', '1786'),
501501
('expires', 'Fri, 30 Oct 1998 00:00:00 GMT'),
502502
('server', 'Splunkd'),
@@ -554,7 +554,7 @@ def get(self, path_segment, owner=None, app=None, sharing=None, **query):
554554
555555
c = binding.connect(...)
556556
c.get('apps/local') == \\
557-
{'body': ...a response reader object...,
557+
{'body': '...a response reader object...',
558558
'headers': [('content-length', '26208'),
559559
('expires', 'Fri, 30 Oct 1998 00:00:00 GMT'),
560560
('server', 'Splunkd'),
@@ -620,7 +620,7 @@ def post(self, path_segment, owner=None, app=None, sharing=None, headers=[], **q
620620
c = binding.connect(...)
621621
c.post('saved/searches', name='boris',
622622
search='search * earliest=-1m | head 1') == \\
623-
{'body': ...a response reader object...,
623+
{'body': '...a response reader object...',
624624
'headers': [('content-length', '10455'),
625625
('expires', 'Fri, 30 Oct 1998 00:00:00 GMT'),
626626
('server', 'Splunkd'),
@@ -685,7 +685,7 @@ def request(self, path_segment, method="GET", headers=[], body="",
685685
686686
c = binding.connect(...)
687687
c.request('saved/searches', method='GET') == \\
688-
{'body': ...a response reader object...,
688+
{'body': '...a response reader object...',
689689
'headers': [('content-length', '46722'),
690690
('expires', 'Fri, 30 Oct 1998 00:00:00 GMT'),
691691
('server', 'Splunkd'),

splunklib/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ def get(self, path_segment="", owner=None, app=None, sharing=None, **query):
665665
s = client.service(...)
666666
apps = s.apps
667667
apps.get() == \\
668-
{'body': ...a response reader object...,
668+
{'body': '...a response reader object...',
669669
'headers': [('content-length', '26208'),
670670
('expires', 'Fri, 30 Oct 1998 00:00:00 GMT'),
671671
('server', 'Splunkd'),
@@ -728,7 +728,7 @@ def post(self, path_segment="", owner=None, app=None, sharing=None, **query):
728728
s = client.service(...)
729729
apps = s.apps
730730
apps.post(name='boris') == \\
731-
{'body': ...a response reader object...,
731+
{'body': '...a response reader object...',
732732
'headers': [('content-length', '2908'),
733733
('expires', 'Fri, 30 Oct 1998 00:00:00 GMT'),
734734
('server', 'Splunkd'),

0 commit comments

Comments
 (0)