Skip to content

Commit

Permalink
Provide backward-compatible galaxy.datatypes.checkers module.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed May 23, 2016
1 parent 2734c2c commit 66947c2
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lib/galaxy/datatypes/checkers.py
@@ -0,0 +1,27 @@
"""Module proxies :module:`galaxy.util.checkers` for backward compatibility.
External datatypes may make use of these functions.
"""
from galaxy.util.checkers import (
check_binary,
check_bz2,
check_gzip,
check_html,
check_image,
check_zip,
HTML_CHECK_LINES,
is_gzip,
is_bz2,
)

__all__ = [
'check_binary',
'check_bz2',
'check_gzip',
'check_html',
'check_image',
'check_zip',
'HTML_CHECK_LINES',
'is_gzip',
'is_bz2',
]
13 changes: 13 additions & 0 deletions lib/galaxy/util/checkers.py
Expand Up @@ -140,3 +140,16 @@ def is_bz2( file_path ):
def is_gzip( file_path ):
is_gzipped, is_valid = check_gzip( file_path )
return is_gzipped


__all__ = [
'check_binary',
'check_bz2',
'check_gzip',
'check_html',
'check_image',
'check_zip',
'HTML_CHECK_LINES',
'is_gzip',
'is_bz2',
]

0 comments on commit 66947c2

Please sign in to comment.