def parse150(resp):
 if (resp[:3] != '150'):
  raise error_reply(resp)
 global _150_re
 if (_150_re is None):
  import re
  _150_re = re.compile('150 .* \\((\\d+) bytes\\)', (re.IGNORECASE | re.ASCII))
 m = _150_re.match(resp)
 if (not m):
  return None
 return int(m.group(1))

def parse150 ( resp ) : if ( resp [ : 3 ] != '150' ) : raise error_reply ( resp ) global _150_re if ( _150_re is None ) : import re _150_re = re . compile ( '150 .* \\((\\d+) bytes\\)' , ( re . IGNORECASE | re . ASCII ) ) m = _150_re . match ( resp ) if ( not m ) : return None return int ( m . group ( 1 ) )
parse the 150 response for a retr request .