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 3d4f7e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin_tools_stats/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Arezqui Belaid <info@star2billing.com>
#

import base64
import bas64
import inspect
import unittest

Expand Down 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' % bas64.encodestring(auth.encode('utf8'))
auth = auth.strip()
self.extra = {
'HTTP_AUTHORIZATION': auth,
Expand Down

0 comments on commit 3d4f7e8

Please sign in to comment.