]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Python: remove Python 2 leftovers
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
Wed, 20 Dec 2023 20:38:38 +0000 (21:38 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 25 Dec 2023 11:40:24 +0000 (06:40 -0500)
* The default source encoding is implictly UTF-8 in Python 3.
  No need to explictly declare  the encoding.
* In Python 3, `print` is a function. Do not attempt to force that.

scripts/util/pcap2decode-proto.py
scripts/util/radeapol_uat.py

index c9f2aa32e3af12122f7936a2c01e4e38f69bc6a9..4e598207f9e87272f2a26c399cd7d58658e392c5 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-#  -*- coding: utf-8 -*-
 #  Copyright 2019 NetworkRADIUS SARL (legal@networkradius.com)
 #  This work is licensed under CC-BY version 4.0 https://creativecommons.org/licenses/by/4.0
 #
@@ -22,8 +21,6 @@
 #  - check if we could call dhcpv6_tp_decode_pair direct from libfreeradius-dhcpv6.{so,dylib}
 #
 
-from __future__ import print_function
-
 import argparse
 import os
 import re
index c0b70ac35d59b9b5c261f29829e97e7ce76068fc..f5ec27a8695094662589fd947e42fe4b5231823d 100755 (executable)
@@ -6,8 +6,6 @@
 # Copyright 2023 The FreeRADIUS Project
 #
 
-from __future__ import print_function
-
 import argparse
 import binascii
 import configparser