Skip to content

Commit 155e200

Browse files
lennaxpeterjc
authored andcommitted
Cleaned up import.
1 parent 42e068f commit 155e200

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Bio/PDB/MMCIF2Dict.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import os.path
99
import warnings
10-
import Bio.PDB.mmCIF.MMCIFlex
10+
import Bio.PDB.mmCIF.MMCIFlex as MMCIFlex
1111

1212

1313
class MMCIF2Dict():
@@ -27,11 +27,16 @@ def __init__(self, filename):
2727
self.data[None]=[]
2828
if not os.path.isfile(filename):
2929
raise IOError("File not found.")
30-
Bio.PDB.mmCIF.MMCIFlex.open_file(filename)
30+
MMCIFlex.open_file(filename)
3131
self._make_mmcif_dict()
32-
Bio.PDB.mmCIF.MMCIFlex.close_file()
32+
MMCIFlex.close_file()
3333

3434
def _make_mmcif_dict(self):
35+
"""
36+
Loop through PLY token (type, value) pairs.
37+
Store data in class dict named data.
38+
39+
"""
3540
# local copies
3641
NAME=self.NAME
3742
LOOP=self.LOOP
@@ -40,7 +45,7 @@ def _make_mmcif_dict(self):
4045
DOUBLEQUOTED=self.DOUBLEQUOTED
4146
QUOTED=self.QUOTED
4247
SIMPLE=self.SIMPLE
43-
get_token=Bio.PDB.mmCIF.MMCIFlex.get_token
48+
get_token=MMCIFlex.get_token
4449
# are we looping?
4550
loop_flag=0
4651
# list of names in loop

0 commit comments

Comments
 (0)