Commit 05ecf3a3 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Minor typo

parent d258b67c
......@@ -646,7 +646,7 @@ class ArgumentParseManager(object):
if not self._parse_required_arguments(item, parsed_args):
return False
return True
if isinstance(required, list):
elif isinstance(required, list):
for item in required:
if self._parse_required_arguments(item, parsed_args):
return True
......@@ -657,6 +657,7 @@ class ArgumentParseManager(object):
"""Parse user input"""
try:
pkargs = (new_args,) if new_args else ()
print self.parser
self._parsed, unparsed = self.parser.parse_known_args(*pkargs)
parsed_args = [
k for k, v in vars(self._parsed).items() if v not in (None, )]
......
......@@ -154,12 +154,12 @@ class RequestManager(Logged):
self._token, val = val, '...'
sendlog.info(' %s: %s%s' % (key, val, plog))
if self.data:
sendlog.info('data size:%s%s' % (len(self.data), plog))
sendlog.info('data size: %s%s' % (len(self.data), plog))
if self.LOG_DATA:
sendlog.info(self.data.replace(self._token, '...') if (
self._token) else self.data)
else:
sendlog.info('data size:0%s' % plog)
sendlog.info('data size: 0%s' % plog)
def perform(self, conn):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment