A little more documentation massaging for #1843

To make the docstirng fit in with the standard style.
This commit is contained in:
Adrian Sampson 2016-02-07 14:50:38 -08:00
parent abc2ff066b
commit 2aeed21f80

View file

@ -1370,7 +1370,8 @@ def modify_items(lib, mods, dels, query, write, move, album, confirm):
changed = ui.input_select_objects(
'Really modify%s' % extra, changed,
lambda o: print_and_modify(o, mods, dels))
lambda o: print_and_modify(o, mods, dels)
)
# Apply changes to database and files
with lib.transaction():
@ -1379,10 +1380,11 @@ def modify_items(lib, mods, dels, query, write, move, album, confirm):
def print_and_modify(obj, mods, dels):
"""Print the modifications to an item
and return a bool indicating whether any changes were made
mods: modifications
dels: fields to delete
"""Print the modifications to an item and return a bool indicating
whether any changes were made.
`mods` is a dictionary of fields and values to update on the object;
`dels` is a sequence of fields to delete.
"""
obj.update(mods)
for field in dels: