Skip to content

Commit 0073f16

Browse files
author
Shakeel Mohamed
committed
Correct code style
1 parent 9c87ad2 commit 0073f16

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/analytics/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, application_name, splunk_info, index = ANALYTICS_INDEX_NAME):
5959

6060
@staticmethod
6161
def encode(props):
62-
encoded = " ";
62+
encoded = " "
6363
for k,v in props.iteritems():
6464
# We disallow dictionaries - it doesn't quite make sense.
6565
assert(not isinstance(v, dict))

examples/explorer/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def make_request(self, url, method, data, headers):
114114
response_file = StringIO.StringIO(response_text)
115115

116116
# On errors, we also log the response text
117-
self.log_message("Response: %s", response_text);
117+
self.log_message("Response: %s", response_text)
118118

119119
# Send the error response code
120120
self.send_response(e.code, message=e.msg)

examples/export/export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def main():
328328
service = connect(**options.kwargs)
329329

330330
if path.exists(options.kwargs['output']):
331-
if options.kwargs['recover'] == False:
331+
if not options.kwargs['recover']:
332332
print "Export file %s exists, and recover option nor specified" % \
333333
options.kwargs['output']
334334
sys.exit(1)

tests/test_fired_alert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def setUp(self):
4343

4444
def tearDown(self):
4545
super(FiredAlertTestCase, self).tearDown()
46-
if (self.service.splunk_version >= (5,)):
46+
if self.service.splunk_version >= (5,):
4747
self.service.indexes.delete(self.index_name)
4848
for saved_search in self.service.saved_searches:
4949
if saved_search.name.startswith('delete-me'):

0 commit comments

Comments
 (0)