Skip to content

Commit

Permalink
Moved import to top level
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Rodrigues committed May 17, 2011
1 parent d77d015 commit 2a69450
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Bio/PDB/Atom.py
Expand Up @@ -5,7 +5,7 @@

"""Atom class, used in Structure objects."""

import numpy
import numpy, warnings

This comment has been minimized.

Copy link
@peterjc

peterjc May 17, 2011

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/

This comment has been minimized.

Copy link
@JoaoRodrigues

JoaoRodrigues via email May 17, 2011

Owner

from Bio.PDB.Entity import DisorderedEntityWrapper
from Bio.PDB.PDBExceptions import PDBConstructionWarning
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2a69450

Please sign in to comment.