# HG changeset patch # User da-intersect # Date 1365657452 14400 # Node ID 8d45dcc590e30ca3c349396813c7448c10640861 # Parent ec45fc127fe886d06145146e853759b55df7b488 Uploaded diff -r ec45fc127fe8 -r 8d45dcc590e3 tar.py --- a/tar.py Wed Apr 10 22:18:46 2013 -0400 +++ b/tar.py Thu Apr 11 01:17:32 2013 -0400 @@ -1,13 +1,14 @@ +import data, logging, binascii +from galaxy.datatypes.metadata import MetadataElement +from galaxy.datatypes import metadata +from galaxy.datatypes.sniff import * from galaxy import eggs import pkg_resources pkg_resources.require( "bx-python" ) - -import logging, os, sys, time, sets, tempfile, shutil -import data -from galaxy import util -from galaxy.datatypes.sniff import * -from galaxy.datatypes.binary import Binary -import tarfile +from urllib import urlencode, quote_plus +import zipfile, gzip +import os, subprocess, tempfile, tarfile +import struct class Tar( Binary ): """Class describing a BAM binary file""" @@ -15,8 +16,8 @@ def sniff( self, filename ): try: if tarfile.is_tarfile(filename): - return True - return False + return True + return False except: return False def set_peek( self, dataset, is_multi_byte=False ):