Skip to content

Commit

Permalink
Force absolute import in much of galaxy.util
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Oct 17, 2017
1 parent 7906a94 commit c96e994
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy/util/biostar.py
@@ -1,6 +1,7 @@
"""
Support for integration with the Biostar application
"""
from __future__ import absolute_import

import hmac
import logging
Expand Down
1 change: 1 addition & 0 deletions lib/galaxy/util/handlers.py
Expand Up @@ -3,6 +3,7 @@
A 'handler' is a named Python process running the Galaxy application responsible
for some activity such as queuing up jobs or scheduling workflows.
"""
from __future__ import absolute_import

import logging
import os
Expand Down
2 changes: 2 additions & 0 deletions lib/galaxy/util/hash_util.py
Expand Up @@ -2,6 +2,8 @@
Utility functions for bi-directional Python version compatibility. Python 2.5
introduced hashlib which replaced sha in Python 2.4 and previous versions.
"""
from __future__ import absolute_import

import hashlib
import hmac
import logging
Expand Down
2 changes: 2 additions & 0 deletions lib/galaxy/util/image_util.py
@@ -1,4 +1,6 @@
"""Provides utilities for working with image files."""
from __future__ import absolute_import

import imghdr
import logging

Expand Down
2 changes: 2 additions & 0 deletions lib/galaxy/util/object_wrapper.py
@@ -1,6 +1,8 @@
"""
Classes for wrapping Objects and Sanitizing string output.
"""
from __future__ import absolute_import

import collections
import inspect
import logging
Expand Down
1 change: 1 addition & 0 deletions lib/galaxy/util/pastescript/serve.py
Expand Up @@ -16,6 +16,7 @@
# code here, stripping out uneeded functionality.

# All top level imports from each package moved here and organized
from __future__ import absolute_import
from __future__ import print_function

import atexit
Expand Down
2 changes: 2 additions & 0 deletions lib/galaxy/util/streamball.py
@@ -1,6 +1,8 @@
"""
A simple wrapper for writing tarballs as a stream.
"""
from __future__ import absolute_import

import logging
import os
import tarfile
Expand Down
2 changes: 2 additions & 0 deletions lib/galaxy/util/submodules.py
@@ -1,3 +1,5 @@
from __future__ import absolute_import

import logging

from os import listdir
Expand Down

0 comments on commit c96e994

Please sign in to comment.