Fix up some changes made by 2to3

This commit is contained in:
flan
2017-11-04 02:15:40 +01:00
parent 0cc21101d7
commit 32b82d5803
7 changed files with 13 additions and 27 deletions

View File

@@ -2,7 +2,7 @@
import unittest
import tempfile
import os
from mock import MagicMock
from unittest.mock import MagicMock
import shutil
import anki
@@ -31,7 +31,7 @@ class CollectionTestBase(unittest.TestCase):
model = self.collection.models.byName(data['model'])
note = Note(self.collection, model)
for name, value in list(data['fields'].items()):
for name, value in data['fields'].items():
note[name] = value
if 'tags' in data: