[Bug 577986] [NEW] Difference between documentation and functionality of gio.File.replace()
Launchpad Bug Tracker
577986 at bugs.launchpad.net
Mon Oct 31 22:46:21 UTC 2011
You have been subscribed to a public bug:
According to the documentation for gio.File.replace() the first argument
is either an ETAG or 'None'.
<http://library.gnome.org/devel/pygobject/stable/class-giofile.html
#method-giofile--replace>
However, when I execute the following line of code: "returnvalue =
local_patch.replace( None, False, gio.FILE_CREATE_REPLACE_DESTINATION )"
(part of a not yet finished revision of lp:mergimus ) I get the
following error message:
Traceback (most recent call last):
File "/home/qense/Ontwikkeling/mergimus/mergimus/MergimusPatchviewHBox.py", line 156, in test_patch_action_activate_cb
returnvalue = local_patch.replace( None, False, gio.FILE_CREATE_REPLACE_DESTINATION )
TypeError: gio.File.replace() argument 1 must be string, not None
** Affects: glib2.0 (Ubuntu)
Importance: Undecided
Status: Fix Released
--
Difference between documentation and functionality of gio.File.replace()
https://bugs.launchpad.net/bugs/577986
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to glib2.0 in Ubuntu.
More information about the foundations-bugs
mailing list