Skip to content

Commit 0b003fd

Browse files
authored
Merge pull request #101 from a-detiste/main
remove leftover usage of "six" Python 2+3 compatibility layer
2 parents 8dc1845 + 083cb5f commit 0b003fd

File tree

14 files changed

+4
-18
lines changed

14 files changed

+4
-18
lines changed

package/debian10/control

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Depends: ${misc:Depends},
4747
python3-numpy,
4848
python3-matplotlib,
4949
python3-scipy,
50-
python3-six,
5150
python3-pyfai
5251
# Recommends:
5352
# Suggests: python3-rfoo

package/debian11/control

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Depends: ${misc:Depends},
4747
python3-numpy,
4848
python3-matplotlib,
4949
python3-scipy,
50-
python3-six,
5150
python3-pyfai
5251
# Recommends:
5352
# Suggests: python3-rfoo

package/debian12/control

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ Depends: ${misc:Depends},
4949
python3-numpy,
5050
python3-matplotlib,
5151
python3-scipy,
52-
python3-six,
5352
python3-pyfai
5453
# Recommends:
5554
# Suggests: python3-rfoo

package/debian9/control

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ Depends: ${misc:Depends},
7272
python3-numpy,
7373
python3-matplotlib,
7474
python3-scipy,
75-
python3-six,
7675
# Recommends:
7776
# Suggests: python3-rfoo
7877
Description: Free tools for small angle scattering analysis - Python3

src/freesas/cormap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from ._cormap import measure_longest
1010

1111

12-
class LongestRunOfHeads(object):
12+
class LongestRunOfHeads:
1313
"""Implements the "longest run of heads" by Mark F. Schilling
1414
The College Mathematics Journal, Vol. 21, No. 3, (1990), pp. 196-207
1515
http://www.silx.org/pub/freesas/CorMap_math.pdf

src/freesas/model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22
# coding: utf-8
3-
from __future__ import print_function
43

54
__author__ = "Guillaume"
65
__license__ = "MIT"
@@ -9,7 +8,6 @@
98
import os
109
from math import sqrt
1110
import threading
12-
import six
1311
import numpy
1412
try:
1513
from . import _distance
@@ -42,7 +40,7 @@ def __init__(self, molecule=None):
4240
"""
4341
:param molecule: if str, name of a pdb file, else if 2d-array, coordinates of atoms of a molecule
4442
"""
45-
if isinstance(molecule, (six.text_type, six.binary_type)) and os.path.exists(molecule):
43+
if isinstance(molecule, (str, bytes)) and os.path.exists(molecule):
4644
self.read(molecule)
4745
else:
4846
self.atoms = molecule if molecule is not None else [] # initial coordinates of each dummy atoms of the molecule, fourth column full of one for the transformation matrix

src/freesas/test/test_align.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/python
2-
from __future__ import print_function
32

43
__author__ = "Guillaume"
54
__license__ = "MIT"

src/freesas/test/test_all.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22
# coding: utf-8
3-
from __future__ import print_function
43

54
__author__ = "Guillaume"
65
__license__ = "MIT"

src/freesas/test/test_average.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/python
22
# coding: utf-8
3-
from __future__ import print_function
43

54
__author__ = "Guillaume"
65
__license__ = "MIT"

src/freesas/test/test_cormap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/python
22
# coding: utf-8
3-
from __future__ import print_function
43

54
__author__ = "Jerome"
65
__license__ = "MIT"

src/freesas/test/test_distance.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
from __future__ import print_function
43

54
__author__ = "Jérôme Kieffer"
65
__license__ = "MIT"

src/freesas/test/test_model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22
# coding: utf-8
3-
from __future__ import print_function
43

54
__author__ = "Guillaume"
65
__license__ = "MIT"

src/freesas/test/utilstest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def get_datafile(name):
2727
def clean():
2828
pass
2929

30-
class TestOptions(object):
30+
class TestOptions:
3131
"""
3232
Class providing useful stuff for preparing tests.
3333
"""

src/freesas/transformations.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@
193193
194194
"""
195195

196-
from __future__ import division, print_function
197-
198196
import math
199197

200198
import numpy
@@ -1503,7 +1501,7 @@ def random_rotation_matrix(rand=None):
15031501
return quaternion_matrix(random_quaternion(rand))
15041502

15051503

1506-
class Arcball(object):
1504+
class Arcball:
15071505
"""Virtual Trackball Control.
15081506
15091507
>>> ball = Arcball()

0 commit comments

Comments
 (0)