After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698797 - Remove dupcliate call to _gi.Repository.require()
Remove dupcliate call to _gi.Repository.require()
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: introspection
Git master
Other Linux
: Normal trivial
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2013-04-24 21:19 UTC by Niklas Koep
Modified: 2013-04-25 04:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove redundant call to _gi.Repository.require() (469 bytes, patch)
2013-04-24 21:19 UTC, Niklas Koep
none Details | Review

Description Niklas Koep 2013-04-24 21:19:29 UTC
Created attachment 242369 [details] [review]
Remove redundant call to _gi.Repository.require()

I noticed that repository.require() is called twice in IntrospectionModule's constructor, once on entry to the method and once after setting the _namespace, _version and __name__ attributes of the instance. This patch removes the second call.
Comment 1 Martin Pitt 2013-04-25 04:17:07 UTC
Thanks! Pushed: https://git.gnome.org/browse/pygobject/commit/?id=8104fa04ca