Fix warning from pylint:
* 'codecs' imported but unused
* local variable 'deck' is assigned to but never used
--- a/py/gadict_srs_anki.py Fri Nov 25 10:41:07 2016 +0200
+++ b/py/gadict_srs_anki.py Fri Nov 25 10:42:34 2016 +0200
@@ -4,7 +4,6 @@
import os
import io
import sys
-import codecs
import tempfile
import shutil
import signal
@@ -208,7 +207,6 @@
self.collection = collection = anki.Collection(os.path.join(self.tmpdir, 'collection.anki2'))
deck_id = collection.decks.id(self.name)
- deck = collection.decks.get(deck_id)
# It is essential to keep model['id'] unchanged between upgrades!!
MODEL_ID = int(hashlib.sha1(self.name).hexdigest(), 16) % (2**63)