Skip to content

Commit

Permalink
chore: remove __future__ imports (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson authored May 30, 2024
1 parent f0f7671 commit e707773
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 16 deletions.
9 changes: 3 additions & 6 deletions sbin/assembly-to-json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import absolute_import, division, print_function, unicode_literals

"""convert assembly text file to json
eg$ ./sbin/assembly-to-json -p bioutils/_data/assemblies -f pull/GCF_000001405.29.assembly.txt
Expand All @@ -27,7 +24,7 @@ class AssemblyParser(object):

def __init__(self, body):
self._body = body.replace("\r","")

@property
def name(self):
return re.search("^# Assembly name:\s+(\S+)", self._body, flags=re.MULTILINE).group(1).strip()
Expand All @@ -42,7 +39,7 @@ class AssemblyParser(object):
@property
def taxid(self):
return re.search("^# Taxid:\s+(\S+)", self._body, flags=re.MULTILINE).group(1).strip()

@property
def genbank_accession(self):
try:
Expand Down Expand Up @@ -148,4 +145,4 @@ if __name__ == "__main__":
except Exception as e:
logger.error("oopsie on " + assy_id_or_name)
logger.exception(e)

3 changes: 0 additions & 3 deletions src/bioutils/accessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
The string form may be used as a CURIE, in which case the document in
which the CURIE is used must contain a map of ``{namespace : uri}``.
"""

from __future__ import absolute_import, division, print_function, unicode_literals

import re

from .exceptions import BioutilsError
Expand Down
2 changes: 0 additions & 2 deletions src/bioutils/coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
*intervals* specified in each of the coordinate systems.
"""

from __future__ import absolute_import, division, print_function, unicode_literals

PLUS_STRAND = 1
MINUS_STRAND = -1

Expand Down
3 changes: 0 additions & 3 deletions src/bioutils/seqfetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"""Provides sequence fetching from NCBI and Ensembl.
"""

from __future__ import absolute_import, division, print_function, unicode_literals

import logging
import os
import random
Expand Down
2 changes: 0 additions & 2 deletions src/bioutils/vmc_digest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import hashlib

from .digest import Digest
Expand Down

0 comments on commit e707773

Please sign in to comment.