Commit 05fea2f4 by Matthew Harrigan

Python3-compatible imports

parent d3f014a5
from pdbfixer import PDBFixer from __future__ import absolute_import
from .pdbfixer import PDBFixer
...@@ -28,6 +28,7 @@ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR ...@@ -28,6 +28,7 @@ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE. USE OR OTHER DEALINGS IN THE SOFTWARE.
""" """
from __future__ import absolute_import
__author__ = "Peter Eastman" __author__ = "Peter Eastman"
__version__ = "1.1" __version__ = "1.1"
...@@ -1027,8 +1028,7 @@ class PDBFixer(object): ...@@ -1027,8 +1028,7 @@ class PDBFixer(object):
def main(): def main():
if len(sys.argv) < 2: if len(sys.argv) < 2:
# Display the UI. # Display the UI.
from . import ui
import ui
ui.launchUI() ui.launchUI()
else: else:
# Run in command line mode. # Run in command line mode.
......
import simtk.openmm.app as app from __future__ import absolute_import
from simtk.openmm.app.internal.pdbstructure import PdbStructure
import simtk.unit as unit
from pdbfixer import PDBFixer, substitutions, proteinResidues, dnaResidues, rnaResidues
import uiserver
import webbrowser import webbrowser
import os.path import os.path
import gzip
import time import time
from io import BytesIO
import simtk.openmm.app as app
import simtk.unit as unit
from .pdbfixer import PDBFixer, proteinResidues, dnaResidues, rnaResidues
from . import uiserver
try: try:
from urllib.request import urlopen from urllib.request import urlopen
from io import StringIO from io import StringIO
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment