Remove redundant encoding specifiers and __future__ imports

This commit is contained in:
Mads Marquart
2019-08-28 21:57:46 +02:00
parent 75378bb709
commit 66505f8f41
38 changed files with 0 additions and 117 deletions

View File

@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a

View File

@@ -1,5 +1,3 @@
# -*- coding: UTF-8 -*-
from fbchat import Client
from fbchat.models import *

View File

@@ -1,5 +1,3 @@
# -*- coding: UTF-8 -*-
from fbchat import log, Client
# Subclass fbchat.Client and override required methods

View File

@@ -1,5 +1,3 @@
# -*- coding: UTF-8 -*-
from itertools import islice
from fbchat import Client
from fbchat.models import *

View File

@@ -1,5 +1,3 @@
# -*- coding: UTF-8 -*-
from fbchat import Client
from fbchat.models import *

View File

@@ -1,5 +1,3 @@
# -*- coding: UTF-8 -*-
from fbchat import log, Client
from fbchat.models import *

View File

@@ -1,5 +1,3 @@
# -*- coding: UTF-8 -*-
from fbchat import log, Client
from fbchat.models import *

View File

@@ -1,10 +1,8 @@
# -*- coding: UTF-8 -*-
"""Facebook Chat (Messenger) for Python
:copyright: (c) 2015 - 2019 by Taehoon Kim
:license: BSD 3-Clause, see LICENSE for more details.
"""
from __future__ import unicode_literals
# These imports are far too general, but they're needed for backwards compatbility.
from .models import *

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr
from . import _util

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import requests
import urllib
from uuid import uuid1

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import logging
import aenum

View File

@@ -1,7 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
class FBchatException(Exception):
"""Custom exception thrown by ``fbchat``.

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr
from ._attachment import Attachment

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import json
import re
from . import _util

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr
from . import _plan
from ._thread import ThreadType, Thread

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr
from ._attachment import Attachment
from . import _util

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr
import json
from string import Formatter

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr
from . import _plan
from ._thread import ThreadType, Thread

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr
import json
from ._core import Enum

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr
from ._attachment import Attachment

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr
import bs4
import re

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr
from ._attachment import Attachment

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr
from ._core import Enum

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import attr
from ._core import Enum
from . import _plan

View File

@@ -1,6 +1,3 @@
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import re
import json
from time import time

View File

@@ -1,11 +1,9 @@
# -*- coding: UTF-8 -*-
"""This file is here to maintain backwards compatability, and to re-export our models
into the global module (see `__init__.py`).
A common pattern was to use `from fbchat.models import *`, hence we need this while
transitioning to a better code structure.
"""
from __future__ import unicode_literals
from ._core import Enum
from ._exception import FBchatException, FBchatFacebookError, FBchatUserError

View File

@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
import json

View File

@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
import py_compile

View File

@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
from os import path

View File

@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
from fbchat.models import Message, MessageReaction

View File

@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
from fbchat.models import Plan, FBchatFacebookError, ThreadType

View File

@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
from fbchat.models import Poll, PollOption, ThreadType

View File

@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from fbchat.models import ThreadType

View File

@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
from os import path

View File

@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest

View File

@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
from fbchat.models import (

View File

@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import threading
import logging
import pytest