コード例 #1
0
def hide_function_names(obj):
    identifiers = list(ex.extract_func_names_from_obj(obj))
    replaces    = Utils.mod_names_identifier(identifiers)
    obj         = "\n".join(obj)
    for i in xrange(len(identifiers)):
	if identifiers[i]: obj     = sub(r""+identifiers[i]+r"\s*\(",replaces[i]+"(",obj)
    return obj.split("\n")
コード例 #2
0
def hide_function_names(obj):
    identifiers = list(ex.extract_func_names_from_obj(obj))
    replaces = Utils.mod_names_identifier(identifiers)
    obj = "\n".join(obj)
    for i in xrange(len(identifiers)):
        if identifiers[i]:
            obj = sub(r"" + identifiers[i] + r"\s*\(", replaces[i] + "(", obj)
    return obj.split("\n")
コード例 #3
0
def hide_function_names(obj):
    identifiers = list(ex.extract_func_names_from_obj(obj))
    replaces = Utils.mod_names_identifier(identifiers)
    for i in xrange(len(obj)):
        for j in xrange(len(identifiers)):
            obj[i] = obj[i].replace(
                identifiers[j],
                replaces[j]) if not not identifiers[j] else obj[i]
    return obj