def readlink(path):
 assert isinstance(path, basestring), path
 path = os.readlink(path)
 path = path.split('\x00')[0]
 if (path.endswith(' (deleted)') and (not path_exists_strict(path))):
  path = path[:(-10)]
 return path

def readlink ( path ) : assert isinstance ( path , basestring ) , path path = os . readlink ( path ) path = path . split ( '\x00' ) [ 0 ] if ( path . endswith ( ' (deleted)' ) and ( not path_exists_strict ( path ) ) ) : path = path [ : ( - 10 ) ] return path
wrapper around os .