8000 fix typo and extra space · Twilio-api/twilio-python@52593fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 52593fd

Browse files
author
Kevin Burke
committed
fix typo and extra space
1 parent eb0aadb commit 52593fd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

twilio/rest/resources.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def transform_params(p):
3434
becomes:
3535
{"Record": "true", "DateCreated": "2012-01-02"}
3636
"""
37-
p = [(format_name(d), convert_boolean(p[d])) for d in p if p[d] is not None]
37+
p = [(format_name(d),
38+
convert_boolean(p[d])) for d in p if p[d] is not None]
3839
return dict(p)
3940

4041

@@ -638,7 +639,7 @@ def list(self, from_=None, ended_after=None,
638639
:param date before: Only list calls started before this datetime
639640
"""
640641
kwargs["from"] = from_
641-
kwargs["StartTime<"] = started_before
642+
kwargs["StartTime<"] = started_before
642643
kwargs["StartTime>"] = started_after
643644
kwargs["StartTime"] = parse_date(started)
644645
kwargs["EndTime<"] = ended_before
@@ -850,7 +851,7 @@ def list(self, **kwargs):
850851
851852
You can specify partial numbers and use '*' as a wildcard.
852853
"""
853-
return self.get_instances(params=trasnform_params(kwargs))
854+
return self.get_instances(params=transform_params(kwargs))
854855

855856
def purchase(self, status_callback_url=None, **kwargs):
856857
"""
@@ -1012,8 +1013,8 @@ def list(self, **kwargs):
10121013
"""
10131014
return self.get_instances(params=transform_params(kwargs))
10141015

1015-
def update(self, sid, url=None, method=None,
1016-
fallback_url=None, fallback_method=None):
1016+
def update(self, sid, url=None, method=None, fallback_url=None,
1017+
fallback_method=None, **kwargs):
10171018
"""
10181019
Update a specific :class:`ShortCode`, by specifying the sid.
10191020

0 commit comments

Comments
 (0)
0