This is fixed in the current GI bindings. Checking /usr/share/gir-1.0/Gio-2.0.gir, I see
<method name="replace" c:identifier="g_file_replace" throws="1"> [...] <parameter name="etag" transfer-ownership="none" allow-none="1"> i. e. it has [allow-none]. ** Package changed: pygobject (Ubuntu) => glib2.0 (Ubuntu) ** Changed in: glib2.0 (Ubuntu) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to glib2.0 in Ubuntu. https://bugs.launchpad.net/bugs/577986 Title: Difference between documentation and functionality of gio.File.replace() To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/577986/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs