Skip to content

Commit

Permalink
try optional waterbridges import
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Aug 10, 2023
1 parent 10dfba7 commit aa943a4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions prody/proteins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,15 @@
from .starfile import *
__all__.extend(starfile.__all__)

from . import waterbridges
from .waterbridges import *
__all__.extend(waterbridges.__all__)
try:
from . import waterbridges
from .waterbridges import *
except SyntaxError:
import logging
logger = logging.getLogger()
logger.warn("Cannot import waterbridges in python 2")
else:
__all__.extend(waterbridges.__all__)

from . import fixer
from .fixer import *
Expand Down

0 comments on commit aa943a4

Please sign in to comment.