mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
modpython: Make strings to be stringable.
Now you can use str() on objects of znc.String. The same is true for arguments which represent CString&.
This commit is contained in:
@@ -106,6 +106,18 @@ public:
|
||||
CString s;
|
||||
};
|
||||
|
||||
%extend CPyRetString {
|
||||
CString __str__() {
|
||||
return $self->s;
|
||||
}
|
||||
};
|
||||
|
||||
%extend String {
|
||||
CString __str__() {
|
||||
return $self->s;
|
||||
}
|
||||
};
|
||||
|
||||
%extend CModule {
|
||||
MCString_iter BeginNV_() {
|
||||
return MCString_iter($self->BeginNV());
|
||||
|
||||
Reference in New Issue
Block a user