Changeset 9baedc9 in trunk


Ignore:
Timestamp:
2021-05-11T15:09:59Z (4 years ago)
Author:
Itamar Turner-Trauring <itamar@…>
Branches:
master
Children:
b8b00fa
Parents:
3f25714
Message:

Auth token needs to be bytes, apparently.

Location:
src/allmydata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/client.py

    r3f25714 r9baedc9  
    929929        calls.
    930930        """
    931         return self.config.get_private_config('api_auth_token')
     931        return self.config.get_private_config(
     932            'api_auth_token').encode("ascii")
    932933
    933934    def _create_auth_token(self):
  • TabularUnified src/allmydata/test/test_client.py

    r3f25714 r9baedc9  
    416416
    417417        token = c.get_auth_token()
    418         self.assertEqual("deadbeef", token)
     418        self.assertEqual(b"deadbeef", token)
    419419
    420420    @defer.inlineCallbacks
Note: See TracChangeset for help on using the changeset viewer.