Skip to content

Commit

Permalink
Drop Python 2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Jun 7, 2024
1 parent 72b4d5e commit e249c72
Show file tree
Hide file tree
Showing 34 changed files with 1 addition and 43 deletions.
1 change: 0 additions & 1 deletion examples/display_slab.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP.npctransport
import IMP
import RMF
Expand Down
1 change: 0 additions & 1 deletion examples/make_cfg.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import IMP
from IMP.npctransport import create_range, Configuration
import sys
Expand Down
1 change: 0 additions & 1 deletion examples/slab.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP.npctransport
import IMP
import RMF
Expand Down
5 changes: 1 addition & 4 deletions patch_protoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
header_fn = sys.argv[1]
link_header_fn = sys.argv[2]

if sys.version_info[0] == 2:
linesep = os.linesep
else:
linesep = bytes(os.linesep, 'ascii')
linesep = bytes(os.linesep, 'ascii')

with open(header_fn, 'rb') as fh:
contents = fh.read()
Expand Down
1 change: 0 additions & 1 deletion pyext/src/_configuration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import argparse


Expand Down
1 change: 0 additions & 1 deletion test/expensive_test_harmonic_spring_score_from_protobuf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP.npctransport
import IMP.core
import IMP.algebra
Expand Down
1 change: 0 additions & 1 deletion test/expensive_test_hdf5_statistics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/expensive_test_statistics_from_simulation_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/medium_test_fg_anchoring_from_protobuf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP.npctransport
import IMP.test
import sys
Expand Down
1 change: 0 additions & 1 deletion test/medium_test_init_from_output.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import RMF
Expand Down
1 change: 0 additions & 1 deletion test/medium_test_init_from_rmf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import RMF
Expand Down
1 change: 0 additions & 1 deletion test/medium_test_sites_from_simulation_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
from IMP.npctransport import *
import IMP
import IMP.test
Expand Down
1 change: 0 additions & 1 deletion test/medium_test_slab_with_cylindrical_pore_ss.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
3 changes: 0 additions & 3 deletions test/test_automatic_parameters.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import print_function


import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/test_avro_reader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP.npctransport
import IMP.test
import sys
Expand Down
1 change: 0 additions & 1 deletion test/test_exclude_zrange_score.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/test_fg_copy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.algebra
Expand Down
1 change: 0 additions & 1 deletion test/test_get_fg_chain_roots.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
from IMP.npctransport import *
import IMP
import IMP.test
Expand Down
2 changes: 0 additions & 2 deletions test/test_harmonic_spring_score.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

try:
import pandas
except ImportError:
Expand Down
2 changes: 0 additions & 2 deletions test/test_interactions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/test_linear.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/test_linear_scores.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
3 changes: 0 additions & 3 deletions test/test_protobufs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import print_function


import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/test_remove_particle_type.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/test_rmf_sites.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/test_sites.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/test_sites_pairs_score.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/test_slab_with_toroidal_pore_ss.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.algebra
Expand Down
1 change: 0 additions & 1 deletion test/test_statistics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/test_transporting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/test_util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
from IMP.npctransport import *
import sys
import math
Expand Down
1 change: 0 additions & 1 deletion test/test_well.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion test/test_z_bias_score.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import IMP
import IMP.test
import IMP.npctransport
Expand Down
1 change: 0 additions & 1 deletion utility/add_cylinder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python
"""Add cylinders of a given radius to the passed file."""
from __future__ import print_function
import IMP
import RMF
import IMP.rmf
Expand Down

0 comments on commit e249c72

Please sign in to comment.