summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0bf1fa3)
Remove the `gf' temporary, which isn't really doing much of any good.
## the appropriate categories. Later, we'll apply policy to the
## files, by category, and work out what to do with them all.
else:
## the appropriate categories. Later, we'll apply policy to the
## files, by category, and work out what to do with them all.
else:
- gf = GIO.File(masterfile)
- mime = gf.query_info('standard::content-type').get_content_type()
+ mime = GIO.File(masterfile) \
+ .query_info('standard::content-type') \
+ .get_content_type()
cats = []
for cat in pmap.iterkeys():
id = cat.identify(masterfile, mime)
cats = []
for cat in pmap.iterkeys():
id = cat.identify(masterfile, mime)