From 96aef71f56281d9cd0149de80da711b34cd74109 Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Thu, 8 Aug 2024 16:01:24 -0700 Subject: [PATCH] Drop Python 2 compatibility code --- modules/mmcif/test/test_convert.py | 6 +----- modules/mmcif/test/test_dumper.py | 7 +------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/modules/mmcif/test/test_convert.py b/modules/mmcif/test/test_convert.py index fb1b6143dd..d7ccbea614 100644 --- a/modules/mmcif/test/test_convert.py +++ b/modules/mmcif/test/test_convert.py @@ -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): diff --git a/modules/mmcif/test/test_dumper.py b/modules/mmcif/test/test_dumper.py index 9cbc7fc48f..188ce1d2f5 100644 --- a/modules/mmcif/test/test_dumper.py +++ b/modules/mmcif/test/test_dumper.py @@ -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):