[twitter] move transaction_id.py
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright 2016-2025 Mike Fährmann
|
# Copyright 2016-2026 Mike Fährmann
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License version 2 as
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
@@ -1720,8 +1720,7 @@ class TwitterAPI():
|
|||||||
def _client_transaction(self):
|
def _client_transaction(self):
|
||||||
self.log.info("Initializing client transaction keys")
|
self.log.info("Initializing client transaction keys")
|
||||||
|
|
||||||
from .. import transaction_id
|
ct = self.extractor.utils("transaction_id").ClientTransaction()
|
||||||
ct = transaction_id.ClientTransaction()
|
|
||||||
ct.initialize(self.extractor)
|
ct.initialize(self.extractor)
|
||||||
|
|
||||||
# update 'x-csrf-token' header (#7467)
|
# update 'x-csrf-token' header (#7467)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright 2025 Mike Fährmann
|
# Copyright 2025-2026 Mike Fährmann
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License version 2 as
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
@@ -22,8 +22,8 @@ import random
|
|||||||
import hashlib
|
import hashlib
|
||||||
import binascii
|
import binascii
|
||||||
import itertools
|
import itertools
|
||||||
from . import text, util
|
from ... import text, util
|
||||||
from .cache import cache
|
from ...cache import cache
|
||||||
|
|
||||||
|
|
||||||
class ClientTransaction():
|
class ClientTransaction():
|
||||||
Reference in New Issue
Block a user