summaryrefslogtreecommitdiff
path: root/gi/overrides
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:50:39 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:50:42 +0900
commitf3eae5a895fc60cb99c0c366bdd011018ce3bc7b (patch)
tree05145bd5ec6ec44e6cb9d5604ade02923e66d6a0 /gi/overrides
parent942efc88315506d2a299ae79d05fa8dfe00f8166 (diff)
downloadpygobject2-f3eae5a895fc60cb99c0c366bdd011018ce3bc7b.tar.gz
pygobject2-f3eae5a895fc60cb99c0c366bdd011018ce3bc7b.tar.bz2
pygobject2-f3eae5a895fc60cb99c0c366bdd011018ce3bc7b.zip
Imported Upstream version 3.9.92upstream/3.9.92upstream
Change-Id: I568bb088bda84501eabdd8ad9d0224c88b73695e Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'gi/overrides')
-rw-r--r--gi/overrides/GLib.py2
-rw-r--r--gi/overrides/__init__.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/gi/overrides/GLib.py b/gi/overrides/GLib.py
index 0a4cdb6..f4b1ef5 100644
--- a/gi/overrides/GLib.py
+++ b/gi/overrides/GLib.py
@@ -536,7 +536,7 @@ __all__.append('MainContext')
class Source(GLib.Source):
- def __new__(cls):
+ def __new__(cls, *args, **kwargs):
# use our custom pyg_source_new() here as g_source_new() is not
# bindable
source = source_new()
diff --git a/gi/overrides/__init__.py b/gi/overrides/__init__.py
index 943ea60..8aa9731 100644
--- a/gi/overrides/__init__.py
+++ b/gi/overrides/__init__.py
@@ -64,6 +64,7 @@ class overridefunc(object):
def wrapper(*args, **kwargs):
return func(*args, **kwargs)
wrapper.__name__ = func.__name__
+ wrapper.__doc__ = func.__doc__
setattr(self.module, func.__name__, wrapper)
return wrapper