Skip to content

Commit bf5e578

Browse files
committed
PEP8
1 parent e70268d commit bf5e578

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/pan/wfapi.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
_encoding = 'utf-8'
7272
_tags_forcelist = set(['entry'])
7373
_rfc2231_encode = False
74-
#_rfc2231_encode = True
7574
_wildfire_responses = {
7675
418: 'Unsupported File Type',
7776
419: 'Sample Upload or Request Quota Exceeded',
@@ -249,8 +248,6 @@ def __set_response(self, response):
249248
# XXX text/xml RFC 3023
250249
elif ('application/xml' in content_type or
251250
'text/xml' in content_type):
252-
# 'text/xml' in content_type) and
253-
# 'charset=utf-8' in content_type):
254251
return self.__set_xml_response(message_body)
255252

256253
elif 'text/html' in content_type:
@@ -268,7 +265,7 @@ def __set_stream_response(self, response, message_body):
268265
self._msg = 'no content-disposition response header'
269266
return False
270267

271-
if not 'attachment' in content_disposition:
268+
if 'attachment' not in content_disposition:
272269
msg = 'no handler for content-disposition: %s' % \
273270
content_disposition
274271
self._msg = msg
@@ -683,7 +680,7 @@ def __cacloud(self):
683680
# Content-Type: application/octet-stream
684681
#
685682
# XXXfilecontents
686-
#--___XXX--
683+
# --___XXX--
687684

688685
class _MultiPartFormData:
689686
def __init__(self, debug=0):

0 commit comments

Comments
 (0)