Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Remove implicit relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bryangingechen committed Jul 28, 2018
1 parent 6e070ba commit 1210852
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/sage/coding/source_coding/huffman.py
Expand Up @@ -27,12 +27,12 @@
#
# http://www.gnu.org/licenses/
###########################################################################
from __future__ import print_function
from __future__ import print_function, absolute_import

from heapq import heapify, heappush, heappop

from prefix_coding import PrefixCoding
from misc import SimpleTable
from .prefix_coding import PrefixCoding
from .misc import SimpleTable

class Huffman(PrefixCoding):
r"""
Expand Down
3 changes: 2 additions & 1 deletion src/sage/coding/source_coding/prefix_coding.py
Expand Up @@ -18,6 +18,7 @@
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import absolute_import

from abc import ABCMeta, abstractmethod
from itertools import product
Expand All @@ -26,7 +27,7 @@

from sage.structure.sage_object import SageObject
from sage.graphs.digraph import DiGraph
from misc import frequency_table
from .misc import frequency_table

# Key for code length of the longest code in a decoding table.
MAX_KEY_LEN = "key_len"
Expand Down
6 changes: 3 additions & 3 deletions src/sage/coding/source_coding/shannon.py
Expand Up @@ -19,13 +19,13 @@
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function
from __future__ import print_function, absolute_import

from math import ceil, log
from operator import itemgetter

from prefix_coding import PrefixCoding
from misc import SimpleTable, first_binary_dec_places
from .prefix_coding import PrefixCoding
from .misc import SimpleTable, first_binary_dec_places

class Shannon(PrefixCoding):
r"""
Expand Down
6 changes: 3 additions & 3 deletions src/sage/coding/source_coding/shannon_fano.py
Expand Up @@ -19,12 +19,12 @@
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function
from __future__ import print_function, absolute_import

from operator import itemgetter

from prefix_coding import PrefixCoding
from misc import SimpleTable
from .prefix_coding import PrefixCoding
from .misc import SimpleTable

class ShannonFano(PrefixCoding):
r"""
Expand Down
6 changes: 3 additions & 3 deletions src/sage/coding/source_coding/shannon_fano_elias.py
Expand Up @@ -19,14 +19,14 @@
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function
from __future__ import print_function, absolute_import

from math import ceil, log

from six import iteritems

from prefix_coding import PrefixCoding
from misc import SimpleTable, first_binary_dec_places
from .prefix_coding import PrefixCoding
from .misc import SimpleTable, first_binary_dec_places

class ShannonFanoElias(PrefixCoding):
r"""
Expand Down

0 comments on commit 1210852

Please sign in to comment.