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. # Configuration file for the Sphinx documentation builder.
# #
# This file does only contain a selection of the most common options. For a # 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 import Client
from fbchat.models import * from fbchat.models import *

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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