security/etpro-telemetry - fix python 3.11 compatibility issues

This commit is contained in:
Ad Schellevis
2024-06-24 17:48:01 +02:00
parent 486260e069
commit 78a784c5d9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
PLUGIN_NAME= etpro-telemetry
PLUGIN_VERSION= 1.6
PLUGIN_REVISION= 3
PLUGIN_REVISION= 4
PLUGIN_COMMENT= ET Pro Telemetry Edition
PLUGIN_MAINTAINER= ad@opnsense.org
PLUGIN_WWW= https://docs.opnsense.org/manual/etpro_telemetry.html
@@ -36,7 +36,7 @@ def reverse_log_reader(filename):
:return: generator
"""
block_size = 81920
input_stream = open(filename, 'rU')
input_stream = open(filename, 'r')
input_stream.seek(0, os.SEEK_END)
file_byte_start = input_stream.tell()