Skip to content

Commit

Permalink
Move to from builtins import * standard across all py modules
Browse files Browse the repository at this point in the history
  • Loading branch information
stevezau committed Apr 15, 2016
1 parent 8075c81 commit 646d6ed
Show file tree
Hide file tree
Showing 419 changed files with 455 additions and 314 deletions.
4 changes: 3 additions & 1 deletion dev_tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from __future__ import print_function
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import fileinput
import os
import shutil
Expand Down
3 changes: 2 additions & 1 deletion flexget/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/python
from __future__ import unicode_literals, division, absolute_import, print_function
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from ._version import __version__

Expand Down
4 changes: 2 additions & 2 deletions flexget/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import json
import logging
Expand Down
3 changes: 2 additions & 1 deletion flexget/api/authentication.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import base64

Expand Down
3 changes: 2 additions & 1 deletion flexget/api/schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from flask import jsonify, request
from jsonschema import RefResolutionError
Expand Down
4 changes: 2 additions & 2 deletions flexget/api/server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
from builtins import range, object
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import os
import json
Expand Down
4 changes: 2 additions & 2 deletions flexget/api/tasks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import argparse
import cgi
Expand Down
4 changes: 2 additions & 2 deletions flexget/config_schema.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
from builtins import str, map
from __future__ import unicode_literals, division, absolute_import
from builtins import *
from past.builtins import basestring

from future.moves.urllib.parse import urlparse, parse_qsl
Expand Down
3 changes: 2 additions & 1 deletion flexget/db_schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
from __future__ import unicode_literals, division, absolute_import
from builtins import *
from past.builtins import basestring

import logging
Expand Down
4 changes: 2 additions & 2 deletions flexget/entry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
from builtins import str
from __future__ import unicode_literals, division, absolute_import
from builtins import *
from past.builtins import str as oldstr

import copy
Expand Down
4 changes: 2 additions & 2 deletions flexget/event.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""
Provides small event framework
"""
from __future__ import absolute_import, division, unicode_literals
from builtins import object
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import logging

Expand Down
4 changes: 2 additions & 2 deletions flexget/ipc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
from builtins import range, object, str
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import logging
import random
Expand Down
4 changes: 2 additions & 2 deletions flexget/logger.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals, print_function
from builtins import str
from __future__ import unicode_literals, division, absolute_import, print_function
from builtins import *
from past.builtins import basestring

import collections
Expand Down
4 changes: 2 additions & 2 deletions flexget/manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, print_function, unicode_literals
from builtins import str, object
from __future__ import unicode_literals, division, absolute_import, print_function
from builtins import *

import atexit
import codecs
Expand Down
3 changes: 2 additions & 1 deletion flexget/options.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
from __future__ import unicode_literals, division, absolute_import
from builtins import *
from past.builtins import basestring

import copy
Expand Down
4 changes: 2 additions & 2 deletions flexget/plugin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
from builtins import map, str
from __future__ import unicode_literals, division, absolute_import
from builtins import *
from past.builtins import basestring
from future.moves.urllib.error import HTTPError, URLError

Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/api/entry_list.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import copy
import logging
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/api/history.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import logging
from math import ceil
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/api/movie_list.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import copy
import logging
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/api/movie_queue.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import range
from builtins import *

import datetime
from math import ceil
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/api/retry_failed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import logging

Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/api/schedule.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import range
from builtins import *

import copy

Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/api/seen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *
from future.moves.urllib.parse import unquote

import copy
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/api/series.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import copy
import datetime
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/api/tvdb_lookup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from flask import jsonify

Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/api/tvmaze_lookup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from flask import jsonify
from flask_restplus import inputs
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/api/user.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from flask import request
from flask.ext.login import current_user
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/api_rottentomatoes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import str, object
from builtins import *
from past.builtins import basestring
from future.moves.urllib.parse import quote_plus
from future.moves.urllib.error import URLError
Expand Down
5 changes: 1 addition & 4 deletions flexget/plugins/api_t411.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import next
from builtins import map
from builtins import str
from builtins import object
from builtins import *
from datetime import datetime
from functools import partial
import json
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/api_tmdb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import logging
from datetime import datetime, timedelta
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/api_trakt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import map, str, object
from builtins import *
from past.builtins import basestring

import logging
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/api_tvdb.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import object
from builtins import *

import logging
from datetime import datetime, timedelta
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/api_tvmaze.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import object
from builtins import *

import logging
from datetime import datetime
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/cli/backlog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from flexget import options
from flexget.event import event
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/cli/check.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import str
from builtins import *

import codecs
import logging
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/cli/cli_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import map
from builtins import *
from past.builtins import basestring

import argparse
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/cli/database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from flexget import options
from flexget.db_schema import reset_schema, plugin_schemas
Expand Down
3 changes: 2 additions & 1 deletion flexget/plugins/cli/doc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import, print_function
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import logging
import sys
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/cli/explain_sql.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import str
from builtins import *

import logging
from time import time
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/cli/inject.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import argparse
import cgi
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/cli/movie_list.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from argparse import ArgumentParser

Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/cli/movie_queue.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from argparse import ArgumentParser

Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/cli/perf_tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import logging

Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/cli/performance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *
import logging
import time

Expand Down
3 changes: 2 additions & 1 deletion flexget/plugins/cli/plugins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import, print_function
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import logging

Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/cli/seen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from flexget import options
from flexget.event import event
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/cli/series.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import str
from builtins import *

import argparse
from datetime import datetime, timedelta
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/cli/t411.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from flexget import options, plugin
from flexget.event import event
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/cli/web.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from flexget import options
from flexget.event import event
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/cli/win32_service.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import argparse
import logging
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/daemon/scheduler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import hashlib
import logging
Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/daemon/webui.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import logging

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import object
from builtins import *

from datetime import timedelta
import logging
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/estimators/est_release_series_tvmaze.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

from builtins import object

import logging

Expand Down
1 change: 0 additions & 1 deletion flexget/plugins/estimators/est_released.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from builtins import object

import logging

Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/estimators/est_released_movies.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import object
from builtins import *

from datetime import datetime
import logging
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/filter/accept_all.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import object
from builtins import *

import logging

Expand Down
1 change: 1 addition & 0 deletions flexget/plugins/filter/age.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import unicode_literals, division, absolute_import
from builtins import *

import logging
from datetime import datetime
Expand Down
Loading

0 comments on commit 646d6ed

Please sign in to comment.