Public bug reported:

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: pygobject (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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
Desktop Bugs, which is subscribed to pygobject in ubuntu.

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to