Move user agent default to where it belongs
This commit is contained in:
parent
f862772ea6
commit
43ccb72275
@ -2,6 +2,12 @@ A note on versioning: This librarys major version will grow with the APIs
|
|||||||
version number. Breaking changes will be indicated by a change in the minor
|
version number. Breaking changes will be indicated by a change in the minor
|
||||||
(or major) version number, and will generally be avoided.
|
(or major) version number, and will generally be avoided.
|
||||||
|
|
||||||
|
v1.8.0 (in progress)
|
||||||
|
--------------------
|
||||||
|
* Replace some lambdas with list comprenehsions (thanks eumiro)
|
||||||
|
* Add `resolve` keyword to `account_search` (thanks zevaryx)
|
||||||
|
* Add support for user agent header in `create_app` (thanks jkawamoto)
|
||||||
|
|
||||||
v1.8.0
|
v1.8.0
|
||||||
------
|
------
|
||||||
* Overall: Support level is now 3.5.5 (last before 4.0.0)
|
* Overall: Support level is now 3.5.5 (last before 4.0.0)
|
||||||
|
@ -9,13 +9,11 @@ import collections
|
|||||||
|
|
||||||
from .errors import MastodonIllegalArgumentError, MastodonNetworkError, MastodonVersionError, MastodonAPIError
|
from .errors import MastodonIllegalArgumentError, MastodonNetworkError, MastodonVersionError, MastodonAPIError
|
||||||
from .versions import _DICT_VERSION_APPLICATION
|
from .versions import _DICT_VERSION_APPLICATION
|
||||||
from .defaults import _DEFAULT_SCOPES, _SCOPE_SETS, _DEFAULT_TIMEOUT
|
from .defaults import _DEFAULT_SCOPES, _SCOPE_SETS, _DEFAULT_TIMEOUT, _DEFAULT_USER_AGENT
|
||||||
from .utility import parse_version_string, api_version
|
from .utility import parse_version_string, api_version
|
||||||
|
|
||||||
from .internals import Mastodon as Internals
|
from .internals import Mastodon as Internals
|
||||||
|
|
||||||
_DEFAULT_USER_AGENT = "mastodonpy"
|
|
||||||
|
|
||||||
class Mastodon(Internals):
|
class Mastodon(Internals):
|
||||||
###
|
###
|
||||||
# Registering apps
|
# Registering apps
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
_DEFAULT_TIMEOUT = 300
|
_DEFAULT_TIMEOUT = 300
|
||||||
_DEFAULT_STREAM_TIMEOUT = 300
|
_DEFAULT_STREAM_TIMEOUT = 300
|
||||||
_DEFAULT_STREAM_RECONNECT_WAIT_SEC = 5
|
_DEFAULT_STREAM_RECONNECT_WAIT_SEC = 5
|
||||||
|
_DEFAULT_USER_AGENT = "mastodonpy"
|
||||||
_DEFAULT_SCOPES = ['read', 'write', 'follow', 'push']
|
_DEFAULT_SCOPES = ['read', 'write', 'follow', 'push']
|
||||||
_SCOPE_SETS = {
|
_SCOPE_SETS = {
|
||||||
'read': [
|
'read': [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user