From a6f6430e785f6b7030d705ae1772a7c7691e7eec Mon Sep 17 00:00:00 2001 From: Peter Eastman Date: Mon, 28 Oct 2024 09:43:06 -0700 Subject: [PATCH] Removed a deprecated import (#312) --- pdbfixer/pdbfixer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pdbfixer/pdbfixer.py b/pdbfixer/pdbfixer.py index 6fc6c4b..645fcdd 100644 --- a/pdbfixer/pdbfixer.py +++ b/pdbfixer/pdbfixer.py @@ -58,8 +58,6 @@ import math from collections import defaultdict -from pkg_resources import resource_filename - if sys.version_info >= (3,0): from urllib.request import urlopen from io import StringIO @@ -327,7 +325,7 @@ def __init__(self, filename=None, pdbfile=None, pdbxfile=None, url=None, pdbid=N Start from a filename. - >>> filename = resource_filename('pdbfixer', 'tests/data/test.pdb') + >>> filename = 'tests/data/test.pdb' >>> fixer = PDBFixer(filename=filename) Start from a file object.