[twitter] move transaction_id.py

This commit is contained in:
Mike Fährmann
2026-01-31 20:09:26 +01:00
parent 343981ac1c
commit 7692d31a57
2 changed files with 5 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# -*- 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
# it under the terms of the GNU General Public License version 2 as
@@ -1720,8 +1720,7 @@ class TwitterAPI():
def _client_transaction(self):
self.log.info("Initializing client transaction keys")
from .. import transaction_id
ct = transaction_id.ClientTransaction()
ct = self.extractor.utils("transaction_id").ClientTransaction()
ct.initialize(self.extractor)
# update 'x-csrf-token' header (#7467)

View File

@@ -1,6 +1,6 @@
# -*- 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
# it under the terms of the GNU General Public License version 2 as
@@ -22,8 +22,8 @@ import random
import hashlib
import binascii
import itertools
from . import text, util
from .cache import cache
from ... import text, util
from ...cache import cache
class ClientTransaction():