Fix Python 3 compatibility (broken by f5df6695c0).

This commit is contained in:
Valentin Lorentz 2014-07-12 10:13:10 +02:00
parent 0a9d6469f0
commit ba9938b735

View File

@ -341,7 +341,7 @@ class Alias(callbacks.Plugin):
if locked and currentAlias != alias: if locked and currentAlias != alias:
raise AliasError(format('Alias %q is locked.', name)) raise AliasError(format('Alias %q is locked.', name))
f = makeNewAlias(name, alias) f = makeNewAlias(name, alias)
f = new.instancemethod(f, self, Alias) f = types.MethodType(f, self)
if '.' in name or '|' in name: if '.' in name or '|' in name:
aliasGroup = self.registryValue('escapedaliases', value=False) aliasGroup = self.registryValue('escapedaliases', value=False)
confname = escapeAlias(name) confname = escapeAlias(name)