Remove redundant encoding specifiers and __future__ imports
This commit is contained in:
@@ -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
|
||||||
|
@@ -1,5 +1,3 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
|
||||||
|
|
||||||
from fbchat import Client
|
from fbchat import Client
|
||||||
from fbchat.models import *
|
from fbchat.models import *
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
@@ -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 *
|
||||||
|
@@ -1,5 +1,3 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
|
||||||
|
|
||||||
from fbchat import Client
|
from fbchat import Client
|
||||||
from fbchat.models import *
|
from fbchat.models import *
|
||||||
|
|
||||||
|
@@ -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 *
|
||||||
|
|
||||||
|
@@ -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 *
|
||||||
|
|
||||||
|
@@ -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 *
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
from . import _util
|
from . import _util
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import aenum
|
import aenum
|
||||||
|
|
||||||
|
@@ -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``.
|
||||||
|
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
from ._attachment import Attachment
|
from ._attachment import Attachment
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
from ._attachment import Attachment
|
from ._attachment import Attachment
|
||||||
|
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
import bs4
|
import bs4
|
||||||
import re
|
import re
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
from ._attachment import Attachment
|
from ._attachment import Attachment
|
||||||
|
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
from ._core import Enum
|
from ._core import Enum
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -1,7 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
@@ -1,7 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import py_compile
|
import py_compile
|
||||||
|
|
||||||
|
@@ -1,7 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from os import path
|
from os import path
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -1,7 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from fbchat.models import ThreadType
|
from fbchat.models import ThreadType
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,7 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from os import path
|
from os import path
|
||||||
|
@@ -1,7 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,7 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from fbchat.models import (
|
from fbchat.models import (
|
||||||
|
@@ -1,7 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
import logging
|
import logging
|
||||||
import pytest
|
import pytest
|
||||||
|
Reference in New Issue
Block a user