提交 58f9cc77 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Remove duplicate function

上级 b9476965
...@@ -9,6 +9,7 @@ if there exists an assignment to all unification variables such that ...@@ -9,6 +9,7 @@ if there exists an assignment to all unification variables such that
""" """
from copy import copy from copy import copy
from python25 import partial
from utils import * from utils import *
......
...@@ -179,17 +179,6 @@ def from_return_values(values): ...@@ -179,17 +179,6 @@ def from_return_values(values):
return [values] return [values]
def partial(func, *args, **keywords):
def newfunc(*fargs, **fkeywords):
newkeywords = keywords.copy()
newkeywords.update(fkeywords)
return func(*(args + fargs), **newkeywords)
newfunc.func = func
newfunc.args = args
newfunc.keywords = keywords
return newfunc
class ClsInit(type): class ClsInit(type):
"""Class initializer for L{Op} subclasses""" """Class initializer for L{Op} subclasses"""
def __init__(cls, name, bases, dct): def __init__(cls, name, bases, dct):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论