Skip to content

Assert used instead of if #40

@fabianegli

Description

@fabianegli

The same issue as in pyensembl issues 227 - assert is removed form optimized code and should be reserved for testing.

$ git grep assert datacache
datacache/cache.py:        assert subdir
datacache/common.py:    assert download_url or filename, "Either filename or URL must be specified"
datacache/database_table.py:        assert len(key_set) == len(key_list), \
datacache/download.py:            assert len(names) > 0, "Empty zip archive"
datacache/download.py:    assert os.path.exists(transformed_path)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions