style
This commit is contained in:
parent
2446f36375
commit
01735e4c7a
1 changed files with 8 additions and 7 deletions
|
@ -11,9 +11,10 @@ class AptSource():
|
||||||
# parse options, which are optional
|
# parse options, which are optional
|
||||||
if search(r'\[.*\]', string):
|
if search(r'\[.*\]', string):
|
||||||
self.options = {
|
self.options = {
|
||||||
k:v.split(',') for k,v in (
|
k:v.split(',')
|
||||||
e.split('=') for e in search(r'\[(.*)\]', string)[1].split()
|
for k,v in (
|
||||||
)
|
e.split('=') for e in search(r'\[(.*)\]', string)[1].split()
|
||||||
|
)
|
||||||
}
|
}
|
||||||
string_without_options = sub(r'\[.*\]', '', string)
|
string_without_options = sub(r'\[.*\]', '', string)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue