Skip to content

Commit 0b6da22

Browse files
committed
Fix for Python 2.6
1 parent b9f27e0 commit 0b6da22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sunlight/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ def main():
1515
]
1616
if args.get(1) in available_methods:
1717

18-
params = {
19-
g[0][2:]: g[1].get(0) for g in args.grouped.items()[1:] if
18+
params = dict([
19+
(g[0][2:], g[1].get(0)) for g in args.grouped.items()[1:] if
2020
g[0].startswith('--')
21-
}
21+
])
2222
resp = getattr(service, args.get(1))(**params)
2323
sys.stdout.write(json.dumps(resp, indent=2) + '\n')
2424

0 commit comments

Comments
 (0)