Merge branch 'master' of github.com:MISP/PyMISPGalaxies

pull/5/head
Raphaël Vinot 2019-01-22 16:14:07 +01:00
commit 1116f2d684
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from .api import Galaxies, Clusters, EncodeGalaxies, EncodeClusters, UnableToRevertMachinetag from .api import Galaxies, Clusters, EncodeGalaxies, EncodeClusters, UnableToRevertMachinetag

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import json import json

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from setuptools import setup from setuptools import setup

View File

@ -25,7 +25,7 @@ class TestPyMISPGalaxies(unittest.TestCase):
count = Counter(all_searchable) count = Counter(all_searchable)
for k, v in count.items(): for k, v in count.items():
if v != 1: if v != 1:
warnings.warn(f'Duplicate on {cluster.type}: {k}') warnings.warn('Duplicate on {}: {}'.format(cluster.type, k))
def test_duplicates(self): def test_duplicates(self):
has_duplicates = False has_duplicates = False