def parse_external_prop(lines):
 externals = []
 for line in lines.splitlines():
  line = line.lstrip()
  if (not line):
   continue
  if (sys.version_info < (3, 0)):
   line = line.encode('utf-8')
  line = shlex.split(line)
  if (sys.version_info < (3, 0)):
   line = [x.decode('utf-8') for x in line]
  if urlparse.urlsplit(line[(-1)])[0]:
   external = line[0]
  else:
   external = line[(-1)]
  external = decode_as_string(external, encoding='utf-8')
  externals.append(os.path.normpath(external))
 return externals

def parse_external_prop ( lines ) : externals = [ ] for line in lines . splitlines ( ) : line = line . lstrip ( ) if ( not line ) : continue if ( sys . version_info < ( 3 , 0 ) ) : line = line . encode ( 'utf-8' ) line = shlex . split ( line ) if ( sys . version_info < ( 3 , 0 ) ) : line = [ x . decode ( 'utf-8' ) for x in line ] if urlparse . urlsplit ( line [ ( - 1 ) ] ) [ 0 ] : external = line [ 0 ] else : external = line [ ( - 1 ) ] external = decode_as_string ( external , encoding = 'utf-8' ) externals . append ( os . path . normpath ( external ) ) return externals
parse the value of a retrieved svn:externals entry .