Skip to content

Commit

Permalink
fix Python 3.9+ problem
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Nov 20, 2021
1 parent 7ee19c3 commit 184d8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin_tools_stats/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def setUp(self):
self.client = Client()
self.user = User.objects.get(username='admin')
auth = '%s:%s' % ('admin', 'admin')
auth = 'Basic %s' % base64.encodestring(auth.encode('utf8'))
auth = 'Basic %s' % base64.b64encode(auth.encode('utf8'))
auth = auth.strip()
self.extra = {
'HTTP_AUTHORIZATION': auth,
Expand Down

0 comments on commit 184d8fc

Please sign in to comment.