mirror of https://github.com/ecmwf/eccodes.git
Fix failing python tests: Must use old swig v1.3.40!
This commit is contained in:
parent
e31de2bf71
commit
beceeba32f
File diff suppressed because it is too large
Load Diff
|
@ -1,10 +1,9 @@
|
|||
# This file was automatically generated by SWIG (http://www.swig.org).
|
||||
# Version 2.0.10
|
||||
# Version 1.3.40
|
||||
#
|
||||
# Do not make changes to this file unless you know what you are doing--modify
|
||||
# the SWIG interface file instead.
|
||||
|
||||
|
||||
# This file is compatible with both classic and new-style classes.
|
||||
|
||||
from sys import version_info
|
||||
if version_info >= (2,6,0):
|
||||
|
@ -40,7 +39,7 @@ def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
|
|||
return
|
||||
method = class_type.__swig_setmethods__.get(name,None)
|
||||
if method: return method(self,value)
|
||||
if (not static):
|
||||
if (not static) or hasattr(self,name):
|
||||
self.__dict__[name] = value
|
||||
else:
|
||||
raise AttributeError("You cannot add attributes to %s" % self)
|
||||
|
@ -608,6 +607,5 @@ grib_c_gts_header_on = _gribapi_swig.grib_c_gts_header_on
|
|||
def grib_c_gts_header_off():
|
||||
return _gribapi_swig.grib_c_gts_header_off()
|
||||
grib_c_gts_header_off = _gribapi_swig.grib_c_gts_header_off
|
||||
# This file is compatible with both classic and new-style classes.
|
||||
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,10 +1,9 @@
|
|||
# This file was automatically generated by SWIG (http://www.swig.org).
|
||||
# Version 2.0.10
|
||||
# Version 1.3.40
|
||||
#
|
||||
# Do not make changes to this file unless you know what you are doing--modify
|
||||
# the SWIG interface file instead.
|
||||
|
||||
|
||||
# This file is compatible with both classic and new-style classes.
|
||||
|
||||
from sys import version_info
|
||||
if version_info >= (2,6,0):
|
||||
|
@ -40,7 +39,7 @@ def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
|
|||
return
|
||||
method = class_type.__swig_setmethods__.get(name,None)
|
||||
if method: return method(self,value)
|
||||
if (not static):
|
||||
if (not static) or hasattr(self,name):
|
||||
self.__dict__[name] = value
|
||||
else:
|
||||
raise AttributeError("You cannot add attributes to %s" % self)
|
||||
|
@ -632,6 +631,5 @@ grib_c_gts_header_on = _gribapi_swig.grib_c_gts_header_on
|
|||
def grib_c_gts_header_off():
|
||||
return _gribapi_swig.grib_c_gts_header_off()
|
||||
grib_c_gts_header_off = _gribapi_swig.grib_c_gts_header_off
|
||||
# This file is compatible with both classic and new-style classes.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue