Skip to content

Commit 0250984

Browse files
committed
Update results.py
1 parent 2c207d9 commit 0250984

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

splunklib/results.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
"JSONResultsReader"
4747
]
4848

49+
import deprecation
50+
4951

5052
class Message:
5153
"""This class represents informational messages that Splunk interleaves in the results stream.
@@ -149,7 +151,7 @@ def read(self, n=None):
149151
return response
150152

151153

152-
#@deprecat("Use the JSONResultsReader function instead in conjuction with the 'output_mode' query param set to 'json'")
154+
@deprecation.deprecated(details="Use the JSONResultsReader function instead in conjuction with the 'output_mode' query param set to 'json'")
153155
class ResultsReader:
154156
"""This class returns dictionaries and Splunk messages from an XML results
155157
stream.

0 commit comments

Comments
 (0)