8000 Add normalize_dates decorator to iter method · saroshfarhan/twilio-python@bab926d · GitHub
[go: up one dir, main page]

Skip to content

Commit bab926d

Browse files
author
Mitch Friedman
committed
Add normalize_dates decorator to iter method
1 parent 1fdff6d commit bab926d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

twilio/rest/resources/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
parse_rfc2822_date,
2323
transform_params,
2424
UNSET_TIMEOUT,
25+
normalize_dates,
2526
)
2627

2728
logger = logging.getLogger('twilio')
@@ -391,6 +392,7 @@ def update_instance(self, sid, body):
391392
resp, entry = self.request("POST", uri, data=transform_params(body))
392393
return self.load_instance(entry)
393394

395+
@normalize_dates
394396
def iter(self, **kwargs):
395397
""" Return all instance resources using an iterator
396398

0 commit comments

Comments
 (0)
0