mirror of
https://github.com/dnet/pySSTV.git
synced 2026-03-06 04:53:59 +01:00
use absolute imports for Python 3 compatibility
This commit is contained in:
parent
9ef2a5a8ca
commit
09df062547
|
|
@ -4,8 +4,7 @@ from __future__ import print_function
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from sys import stderr
|
from sys import stderr
|
||||||
import color
|
from pysstv import color, grayscale
|
||||||
import grayscale
|
|
||||||
|
|
||||||
SSTV_MODULES = [color, grayscale]
|
SSTV_MODULES = [color, grayscale]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from sstv import byte_to_freq, FREQ_BLACK, FREQ_WHITE, FREQ_VIS_START
|
from pysstv.sstv import byte_to_freq, FREQ_BLACK, FREQ_WHITE, FREQ_VIS_START
|
||||||
from grayscale import GrayscaleSSTV
|
from pysstv.grayscale import GrayscaleSSTV
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from sstv import SSTV, byte_to_freq
|
from pysstv.sstv import SSTV, byte_to_freq
|
||||||
|
|
||||||
|
|
||||||
class GrayscaleSSTV(SSTV):
|
class GrayscaleSSTV(SSTV):
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import pickle
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from pysstv import color
|
from pysstv import color
|
||||||
from common import get_asset_filename
|
from pysstv.tests.common import get_asset_filename
|
||||||
|
|
||||||
|
|
||||||
class TestMartinM1(unittest.TestCase):
|
class TestMartinM1(unittest.TestCase):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue