Skip to content

Commit

Permalink
Drop Python 2 compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Aug 8, 2024
1 parent 8cdb99d commit 96aef71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
6 changes: 1 addition & 5 deletions modules/mmcif/test/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
import ihm
import ihm.reader
import os
import sys
from test_restraints import MockGaussianEMRestraint
if sys.version_info[0] >= 3:
from io import StringIO
else:
from io import BytesIO as StringIO
from io import StringIO


class Tests(IMP.test.TestCase):
Expand Down
7 changes: 1 addition & 6 deletions modules/mmcif/test/test_dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@
import ihm.dataset
import ihm.format
import ihm.dumper
import io
import sys
import os
if sys.version_info[0] >= 3:
from io import StringIO
else:
from io import BytesIO as StringIO
from io import StringIO

class MockGaussianEMRestraint(IMP.Restraint):

Expand Down

0 comments on commit 96aef71

Please sign in to comment.