diff --git a/bazarr.py b/bazarr.py index 390b0ec80..1d88e8306 100644 --- a/bazarr.py +++ b/bazarr.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - bazarr_version = '0.1.4' from bottle import route, run, template, static_file, request, redirect diff --git a/check_update.py b/check_update.py index 501e6d869..6c32ebd7c 100644 --- a/check_update.py +++ b/check_update.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - from get_general_settings import * import os diff --git a/get_episodes.py b/get_episodes.py index ee9f5750e..f8ad5ab34 100644 --- a/get_episodes.py +++ b/get_episodes.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - import os import sqlite3 import requests diff --git a/get_general_settings.py b/get_general_settings.py index a517e63cb..c8c770e0e 100644 --- a/get_general_settings.py +++ b/get_general_settings.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - import sqlite3 import os import ast diff --git a/get_languages.py b/get_languages.py index 8a81cb1cf..efb7cc4b0 100644 --- a/get_languages.py +++ b/get_languages.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - import sqlite3 import pycountry import os diff --git a/get_providers.py b/get_providers.py index cfdf109ed..c02e5c126 100644 --- a/get_providers.py +++ b/get_providers.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - import sqlite3 import os from subliminal import * diff --git a/get_series.py b/get_series.py index 61f89d080..07c52f924 100644 --- a/get_series.py +++ b/get_series.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - import os import sqlite3 import requests diff --git a/get_sonarr_settings.py b/get_sonarr_settings.py index 93a02f1cc..bf64883b4 100644 --- a/get_sonarr_settings.py +++ b/get_sonarr_settings.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - import sqlite3 import os import ast diff --git a/get_subtitle.py b/get_subtitle.py index f1e72c88e..f9adef8bb 100644 --- a/get_subtitle.py +++ b/get_subtitle.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - import os import sqlite3 import ast diff --git a/init_db.py b/init_db.py index 9db99101b..1b6393284 100644 --- a/init_db.py +++ b/init_db.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - import os import sqlite3 diff --git a/list_subtitles.py b/list_subtitles.py index 5e482805d..6eeb92940 100644 --- a/list_subtitles.py +++ b/list_subtitles.py @@ -11,7 +11,7 @@ from get_general_settings import * def list_subtitles(file): languages = [] actual_subtitles = [] - if os.path.exists(unicode(file)): + if os.path.exists(file): if os.path.splitext(file)[1] == '.mkv': try: with open(file, 'rb') as f: @@ -35,8 +35,7 @@ def list_subtitles(file): def store_subtitles(file): languages = [] actual_subtitles = [] - print type(file) - if os.path.exists(unicode(file)): + if os.path.exists(file): if os.path.splitext(file)[1] == '.mkv': try: with open(file, 'rb') as f: diff --git a/scheduler.py b/scheduler.py index 656b05c4b..d57e108e3 100644 --- a/scheduler.py +++ b/scheduler.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - from get_general_settings import * from get_series import * from get_episodes import * diff --git a/utils.py b/utils.py index 8cc932785..68adf89ad 100644 --- a/utils.py +++ b/utils.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - import os import sqlite3 import time