chg: python3

pull/3/head
Christophe Vandeplas 2018-10-19 12:35:36 +02:00
parent 004efe818f
commit 885a28ee79
5 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
language: python language: python3
cache: pip cache: pip

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