forked from biopython/biopython
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joao Rodrigues
committed
May 17, 2011
1 parent
d77d015
commit 2a69450
Showing
1 changed file
with
1 addition
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
"""Atom class, used in Structure objects.""" | ||
|
||
import numpy | ||
import numpy, warnings | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
JoaoRodrigues
via email
Owner
|
||
|
||
from Bio.PDB.Entity import DisorderedEntityWrapper | ||
from Bio.PDB.PDBExceptions import PDBConstructionWarning | ||
|
@@ -94,7 +94,6 @@ def _assign_element(self, element): | |
msg = "Could not assign element %r for Atom (name=%s) with given element %r" \ | ||
% (putative_element, self.name, element) | ||
element = "" | ||
import warnings | ||
warnings.warn(msg, PDBConstructionWarning) | ||
|
||
return element | ||
|
Having two unrelated imports on the same line is nasty, and in breach of the PEP8 style guidelines:
http://www.python.org/dev/peps/pep-0008/