tiny fixes

This commit is contained in:
John Cupitt 2014-11-28 17:55:55 +00:00
parent 9be2d6cc8d
commit ed6eaa4662
2 changed files with 6 additions and 4 deletions

View File

@ -1179,7 +1179,7 @@ vips_object_set_property( GObject *gobject,
printf( ".%s\n", g_param_spec_get_name( pspec ) ); printf( ".%s\n", g_param_spec_get_name( pspec ) );
/* This can crash horribly with some values, have it as a separate /* 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; char *str_value;

View File

@ -110,9 +110,9 @@ Vips.Error = Error
class Argument: class Argument:
def __init__(self, op, prop): def __init__(self, op, prop):
self.op = op; self.op = op
self.prop = prop; self.prop = prop
self.name = re.sub("-", "_", prop.name); self.name = re.sub("-", "_", prop.name)
self.flags = op.get_argument_flags(self.name) self.flags = op.get_argument_flags(self.name)
self.priority = op.get_argument_priority(self.name) self.priority = op.get_argument_priority(self.name)
self.isset = op.argument_isset(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.') raise Error('No known loader for buffer.')
logging.debug('Image.new_from_buffer: loader = %s' % loader) 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) setattr(Vips.Image, 'new_from_buffer', vips_image_new_from_buffer)
@classmethod @classmethod