From 2a236d3a90eb57b444f90c2881aa42ae06c5e0c3 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 17 Apr 2018 22:33:54 +0100 Subject: [PATCH] gremlin/gremlin.in: Refactor content-type guessing. Remove the `gf' temporary, which isn't really doing much of any good. --- gremlin/gremlin.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gremlin/gremlin.in b/gremlin/gremlin.in index 7b0e47d..0a76641 100644 --- a/gremlin/gremlin.in +++ b/gremlin/gremlin.in @@ -1513,8 +1513,9 @@ def grobble(master, targets, noact = False): ## 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) -- 2.11.0