@requires_segment_info
def file_scheme(pl, segment_info):
 name = buffer_name(segment_info)
 if (not name):
  return None
 match = SCHEME_RE.match(name)
 if match:
  return match.group(0).decode(u'ascii')

@ requires_segment_info def file_scheme ( pl , segment_info ) : name = buffer_name ( segment_info ) if ( not name ) : return None match = SCHEME_RE . match ( name ) if match : return match . group ( 0 ) . decode ( u'ascii' )
return the protocol part of the file .