Remove utils.py
The file, and contained functions, were explicitly documented as something you couldn't rely on for backwards compatibility
This commit is contained in:
11
docs/api.rst
11
docs/api.rst
@@ -31,14 +31,3 @@ A good tip is to write ``from fbchat.models import *`` at the start of your sour
|
|||||||
.. automodule:: fbchat.models
|
.. automodule:: fbchat.models
|
||||||
:members:
|
:members:
|
||||||
:undoc-members:
|
:undoc-members:
|
||||||
|
|
||||||
|
|
||||||
.. _api_utils:
|
|
||||||
|
|
||||||
Utils
|
|
||||||
-----
|
|
||||||
|
|
||||||
These functions and values are used internally by fbchat, and are subject to change. Do **NOT** rely on these to be backwards compatible!
|
|
||||||
|
|
||||||
.. automodule:: fbchat.utils
|
|
||||||
:members:
|
|
||||||
|
@@ -7,11 +7,11 @@
|
|||||||
from __future__ import unicode_literals
|
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 .utils import *
|
|
||||||
from .models import *
|
from .models import *
|
||||||
|
|
||||||
from ._graphql import graphql_queries_to_json, graphql_response_to_json, GraphQL
|
from ._graphql import graphql_queries_to_json, graphql_response_to_json, GraphQL
|
||||||
from ._client import Client
|
from ._client import Client
|
||||||
|
from ._util import log # TODO: Remove this
|
||||||
|
|
||||||
__title__ = "fbchat"
|
__title__ = "fbchat"
|
||||||
__version__ = "1.6.5"
|
__version__ = "1.6.5"
|
||||||
|
@@ -59,7 +59,7 @@ class Client(object):
|
|||||||
|
|
||||||
:param email: Facebook `email`, `id` or `phone number`
|
:param email: Facebook `email`, `id` or `phone number`
|
||||||
:param password: Facebook account password
|
:param password: Facebook account password
|
||||||
:param user_agent: Custom user agent to use when sending requests. If `None`, user agent will be chosen from a premade list (see :any:`utils.USER_AGENTS`)
|
:param user_agent: Custom user agent to use when sending requests. If `None`, user agent will be chosen from a premade list
|
||||||
:param max_tries: Maximum number of times to try logging in
|
:param max_tries: Maximum number of times to try logging in
|
||||||
:param session_cookies: Cookies from a previous session (Will default to login if these are invalid)
|
:param session_cookies: Cookies from a previous session (Will default to login if these are invalid)
|
||||||
:param logging_level: Configures the `logging level <https://docs.python.org/3/library/logging.html#logging-levels>`_. Defaults to `INFO`
|
:param logging_level: Configures the `logging level <https://docs.python.org/3/library/logging.html#logging-levels>`_. Defaults to `INFO`
|
||||||
|
@@ -1,32 +0,0 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
|
||||||
"""This file is here to maintain backwards compatability."""
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from .models import *
|
|
||||||
from ._util import (
|
|
||||||
log,
|
|
||||||
handler,
|
|
||||||
USER_AGENTS,
|
|
||||||
ReqUrl,
|
|
||||||
facebookEncoding,
|
|
||||||
now,
|
|
||||||
strip_to_json,
|
|
||||||
get_decoded_r,
|
|
||||||
get_decoded,
|
|
||||||
parse_json,
|
|
||||||
get_json,
|
|
||||||
digitToChar,
|
|
||||||
str_base,
|
|
||||||
generateMessageID,
|
|
||||||
getSignatureID,
|
|
||||||
generateOfflineThreadingID,
|
|
||||||
check_json,
|
|
||||||
check_request,
|
|
||||||
get_jsmods_require,
|
|
||||||
require_list,
|
|
||||||
mimetype_to_key,
|
|
||||||
get_files_from_urls,
|
|
||||||
get_files_from_paths,
|
|
||||||
get_url_parameters,
|
|
||||||
get_url_parameter,
|
|
||||||
)
|
|
Reference in New Issue
Block a user