From 0d4a24c8f594a9356434e05546208b6fbef51351 Mon Sep 17 00:00:00 2001 From: Rokas Ramanauskas Date: Tue, 2 Jul 2019 15:18:49 +0300 Subject: [PATCH] refactor: use python2 compatible syntax --- spacy/lang/lt/morph_rules.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spacy/lang/lt/morph_rules.py b/spacy/lang/lt/morph_rules.py index 441cda44e77..e8b6a2d4d4a 100644 --- a/spacy/lang/lt/morph_rules.py +++ b/spacy/lang/lt/morph_rules.py @@ -15,10 +15,10 @@ ] MORPH_RULES = { - 'Cg': { - **{word: {"POS": "CCONJ"} for word in _coordinating_conjunctions}, - **{word: {"POS": "SCONJ"} for word in _subordinating_conjunctions} - }, + 'Cg': dict( + [(word, {"POS": "CCONJ"}) for word in _coordinating_conjunctions] + + [(word, {"POS": "SCONJ"}) for word in _subordinating_conjunctions] + ), 'Pg--an': { 'keletÄ…': { LEMMA: PRON_LEMMA,