mirror of
https://github.com/samba-team/samba.git
synced 2025-07-26 03:42:04 +03:00
r26399: Use -O option for SWIG (less evil generated code).
(This used to be commit 3378b6a559
)
This commit is contained in:
committed by
Stefan Metzmacher
parent
78a4f5eada
commit
68dc2dc526
@ -2,7 +2,6 @@
|
||||
# Version 1.3.33
|
||||
#
|
||||
# Don't modify this file, modify the SWIG interface instead.
|
||||
# This file is compatible with both classic and new-style classes.
|
||||
|
||||
import _misc
|
||||
import new
|
||||
@ -48,6 +47,16 @@ except AttributeError:
|
||||
del types
|
||||
|
||||
|
||||
def _swig_setattr_nondynamic_method(set):
|
||||
def set_attr(self,name,value):
|
||||
if (name == "thisown"): return self.this.own(value)
|
||||
if hasattr(self,name) or (name == "this"):
|
||||
set(self,name,value)
|
||||
else:
|
||||
raise AttributeError("You cannot add attributes to %s" % self)
|
||||
return set_attr
|
||||
|
||||
|
||||
random_password = _misc.random_password
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user