hitags update
This commit is contained in:
parent
870e1c4d0b
commit
33c6ae03af
@ -67,6 +67,10 @@ targets = [
|
|||||||
'type': 's',
|
'type': 's',
|
||||||
'out': hi('Type')
|
'out': hi('Type')
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'type': 'c',
|
||||||
|
'out': hi('Type')
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'type': 'd',
|
'type': 'd',
|
||||||
'out': hi('Constant')
|
'out': hi('Constant')
|
||||||
@ -96,7 +100,7 @@ def mimetype(filename):
|
|||||||
# cmd = "file -i {input_}".format(input_=filename)
|
# cmd = "file -i {input_}".format(input_=filename)
|
||||||
cmd = "mimetype {input_}".format(input_=filename)
|
cmd = "mimetype {input_}".format(input_=filename)
|
||||||
r = run(cmd, shell=True, stdout=PIPE)
|
r = run(cmd, shell=True, stdout=PIPE)
|
||||||
r = r.stdout.decode('ascii').split(' ')[1].strip()
|
r = r.stdout.decode('ascii', errors='replace').split(' ')[1].strip()
|
||||||
return r
|
return r
|
||||||
|
|
||||||
def preprocessfile(filename):
|
def preprocessfile(filename):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user