libwebp.py: update to swig 3.0.12

fixes use with python 3

Change-Id: I4035c1c93e9f6551dd2e7e57da7d4ffd42ca06ce
This commit is contained in:
James Zern
2019-08-31 19:20:58 -07:00
parent 0e48d889eb
commit 601ef17cf6
3 changed files with 93 additions and 61 deletions

View File

@ -1,14 +1,9 @@
# Lint as: python2, python3
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.10
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_import_helper():
@ -31,17 +26,18 @@ elif _swig_python_version_info >= (2, 6, 0):
except ImportError:
import _libwebp
return _libwebp
if fp is not None:
try:
_mod = imp.load_module('_libwebp', fp, pathname, description)
finally:
try:
_mod = imp.load_module('_libwebp', fp, pathname, description)
finally:
if fp is not None:
fp.close()
return _mod
return _mod
_libwebp = swig_import_helper()
del swig_import_helper
else:
import _libwebp
del _swig_python_version_info
try:
_swig_property = property
except NameError: