File: remove_six.patch

package info (click to toggle)
pyrad 2.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 920 kB
  • sloc: python: 4,021; makefile: 15
file content (29 lines) | stat: -rw-r--r-- 730 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -32,7 +32,6 @@
 
 dependencies = [
   "netaddr>=0.8.0",
-  "six>=1.16.0",
 ]
 
 [project.optional-dependencies]
--- a/pyrad/client.py
+++ b/pyrad/client.py
@@ -9,7 +9,6 @@
 import socket
 import time
 import struct
-import six
 from pyrad import host
 from pyrad import packet
 
@@ -35,7 +34,7 @@
     :type timeout: float
     """
     def __init__(self, server, authport=1812, acctport=1813,
-                 coaport=3799, secret=six.b(''), dict=None, retries=3, timeout=5, enforce_ma=False):
+                 coaport=3799, secret=b'', dict=None, retries=3, timeout=5, enforce_ma=False):
         """Constructor.
 
         :param   server: hostname or IP address of RADIUS server