fix formatkeys so it always has all available formatting keys

- always: no matter whether we use a user-defined format or not
- all: fix bug: it only had the basic keys, not the advanced keys
This commit is contained in:
Thomas Waldmann 2016-02-21 19:47:25 +01:00
parent 08a7ce5cc3
commit b28f4d886b

View file

@ -509,10 +509,9 @@ class Archiver:
'LF': "\n",
'CR': "\r",
'NEWLINE': os.linesep,
'formatkeys': ()
}
item_data_advanced["formatkeys"] = list(item_data.keys())
item_data.update(item_data_advanced)
item_data['formatkeys'] = list(item_data.keys())
if use_user_format:
print(format_line(user_format, item_data), end='')