tiny fixes
This commit is contained in:
parent
9be2d6cc8d
commit
ed6eaa4662
@ -1179,7 +1179,7 @@ vips_object_set_property( GObject *gobject,
|
||||
printf( ".%s\n", g_param_spec_get_name( pspec ) );
|
||||
|
||||
/* This can crash horribly with some values, have it as a separate
|
||||
* chunk so we can easily commenmt it out.
|
||||
* chunk so we can easily comment it out.
|
||||
*/
|
||||
{
|
||||
char *str_value;
|
||||
|
@ -110,9 +110,9 @@ Vips.Error = Error
|
||||
|
||||
class Argument:
|
||||
def __init__(self, op, prop):
|
||||
self.op = op;
|
||||
self.prop = prop;
|
||||
self.name = re.sub("-", "_", prop.name);
|
||||
self.op = op
|
||||
self.prop = prop
|
||||
self.name = re.sub("-", "_", prop.name)
|
||||
self.flags = op.get_argument_flags(self.name)
|
||||
self.priority = op.get_argument_priority(self.name)
|
||||
self.isset = op.argument_isset(self.name)
|
||||
@ -378,6 +378,8 @@ def vips_image_new_from_buffer(cls, data, option_string, **kwargs):
|
||||
raise Error('No known loader for buffer.')
|
||||
logging.debug('Image.new_from_buffer: loader = %s' % loader)
|
||||
|
||||
return _call_base(loader, [data], kwargs, None, option_string)
|
||||
|
||||
setattr(Vips.Image, 'new_from_buffer', vips_image_new_from_buffer)
|
||||
|
||||
@classmethod
|
||||
|
Loading…
Reference in New Issue
Block a user