Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Return a text representation of an archive type.

        def get_name(archive_type):
    """Return a text representation of an archive type."""
    return {ZIP:   _('ZIP archive'),
            TAR:   _('Tar archive'),
            GZIP:  _('Gzip compressed tar archive'),
            BZIP2: _('Bzip2 compressed tar archive'),
            RAR:   _('RAR archive'),
            SEVENZIP: _('7-Zip archive'),
           }[archive_type]
        


src/c/o/Comix-HEAD/src/properties.py   Comix(Download)
                    _('%d comments') %
                        window.file_handler.get_number_of_comments(),
                    archive.get_name(window.file_handler.archive_type),
                    '%.1f MiB' % (stats.st_size / 1048576.0))
                page.set_main_info(main_info)

src/c/o/Comix-HEAD/src/library.py   Comix(Download)
            self._pageslabel.set_text('')
        if format is not None and size is not None:
            self._filelabel.set_text('%s, %s' % (archive.get_name(format),
                '%.1f MiB' % (size / 1048576.0)))
        else: