Skip to content

Commit 79c5f40

Browse files
committed
renaming var
1 parent 0a42949 commit 79c5f40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

watson_developer_cloud/tone_analyzer_v3.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ def tone(self, text, tones=None, sentences=None):
3939
:param sentences: If "false", sentence-level analysis is omitted
4040
:param tones: Can be one or more of 'social', 'language', 'emotion'; comma-separated.
4141
"""
42-
queryArgs = {}
43-
queryArgs['version'] = self.version
42+
params = {}
43+
params['version'] = self.version
4444
if tones is not None:
45-
queryArgs['tones'] = tones
45+
params['tones'] = tones
4646
if sentences is not None:
47-
queryArgs['sentences'] = str(sentences).lower() # Cast boolean to "false" / "true"
47+
params['sentences'] = str(sentences).lower() # Cast boolean to "false" / "true"
4848
data = {'text': text}
49-
return self.request(method='POST', url='/v3/tone', params=queryArgs, json=data, accept_json=True)
49+
return self.request(method='POST', url='/v3/tone', params=params, json=data, accept_json=True)

0 commit comments

Comments
 (0)