8000 Delete Headers and Header · Stackdriver/twilio-python@c5a1e37 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 1, 2018. It is now read-only.

Commit c5a1e37

Browse files
author
Kevin Burke
committed
Delete Headers and Header
1 parent 850ac75 commit c5a1e37

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

twilio/twiml.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44

55
import xml.etree.ElementTree as ET
6-
from six import u
76
from six import iteritems
87

98
class TwimlException(Exception):
@@ -495,18 +494,6 @@ def __init__(self, sip_address=None, **kwargs):
495494
def uri(self, uri, **kwargs):
496495
return self.append(Uri(uri, **kwargs))
497496

498-
def headers(self, headers):
499-
"""Add headers to this Sip noun
500-
501-
:param dict headers: A dictionary of headers
502-
"""
503-
collection = Headers()
504-
505-
for key, value in iteritems(headers):
506-
collection.append(Header(name=key, value=value))
507-
508-
return self.append(collection)
509-
510497

511498
class Uri(Verb):
512499
"""A uniform resource indentifier"""
@@ -515,11 +502,3 @@ def __init__(self, uri, **kwargs):
515502
self.body = uri
516503

517504

518-
class Headers(Verb):
519-
"""A collection of headers"""
520-
nestables = ['Header']
521-
522-
523-
class Header(Verb):
524-
"""A single headers"""
525-
pass

0 commit comments

Comments
 (0)
0