import sys
from tv_factory import TvFactory
from tv_exception import TvException


def main(args):
    tvSpec = args[1]
    region = args[2]
    channel = int(args[3])
    try:
        tv = TvFactory.createtv(tvSpec)
        tv.region = region
        tv.display(channel)
    except TvException as te:
        print(te)


if __name__ == '__main__':
    main(sys.argv)

1de9ef02ed9714687d6c89a34da7884f5e7d8ebc
<mask token>

<mask token>


def main(args):
    tvSpec = args[1]
    region = args[2]
    channel = int(args[3])
    try:
        tv = TvFactory.createtv(tvSpec)
        tv.region = region
        tv.display(channel)
    except TvException as te:
        print(te)


<mask token>

<mask token>


def main(args):
    tvSpec = args[1]
    region = args[2]
    channel = int(args[3])
    try:
        tv = TvFactory.createtv(tvSpec)
        tv.region = region
        tv.display(channel)
    except TvException as te:
        print(te)


if __name__ == '__main__':
    main(sys.argv)

import sys
from tv_factory import TvFactory
from tv_exception import TvException


def main(args):
    tvSpec = args[1]
    region = args[2]
    channel = int(args[3])
    try:
        tv = TvFactory.createtv(tvSpec)
        tv.region = region
        tv.display(channel)
    except TvException as te:
        print(te)


if __name__ == '__main__':
    main(sys.argv)
