Fix deprecated function use
This commit is contained in:
parent
0e9f434ad8
commit
b86cc097d9
3 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2014-02-18 0.12.3:
|
||||
---------------------
|
||||
* Fix deprecation message for py2.6
|
||||
* Fix llvm_cbuilder for using deprecated_alloca
|
||||
|
||||
2014-02-04 0.12.2:
|
||||
---------------------
|
||||
* enhance wrapper efficiency by moving some capsule code into C++
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ def deprecated(func):
|
|||
@functools.wraps(func)
|
||||
def new_func(*args, **kwargs):
|
||||
warnings.warn_explicit(
|
||||
"Call to deprecated function {}.".format(func.__name__),
|
||||
"Call to deprecated function %s." % (func.__name__,),
|
||||
category=DeprecationWarning,
|
||||
filename=func.func_code.co_filename,
|
||||
lineno=func.func_code.co_firstlineno + 1
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ class CBuilder(object):
|
|||
elif not isinstance(count, lc.Value):
|
||||
count = self.constant(types.int, count).value
|
||||
|
||||
ptr = self.builder.alloca_array(ty, count, name=name)
|
||||
ptr = self.builder.alloca(ty, size=count, name=name)
|
||||
return CArray(self, ptr)
|
||||
|
||||
def ret(self, val=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue