0001-Small-Python-2-fix.patch 941 B

1234567891011121314151617181920212223242526
  1. From 0c3d5e417bbd923c4729d15572c3d693d58aff81 Mon Sep 17 00:00:00 2001
  2. From: Gabriel <gabriel@potter.fr>
  3. Date: Wed, 21 Aug 2019 18:18:14 +0800
  4. Subject: [PATCH] Small Python 2 fix
  5. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  6. ---
  7. scapy/tools/generate_ethertypes.py | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/scapy/tools/generate_ethertypes.py b/scapy/tools/generate_ethertypes.py
  10. index 5bc5cdf9..47c38c4f 100644
  11. --- a/scapy/tools/generate_ethertypes.py
  12. +++ b/scapy/tools/generate_ethertypes.py
  13. @@ -20,7 +20,7 @@ URL = "https://raw.githubusercontent.com/openbsd/src/master/sys/net/ethertypes.h
  14. with urllib.request.urlopen(URL) as stream:
  15. DATA = stream.read()
  16. -reg = rb".*ETHERTYPE_([^\s]+)\s.0x([0-9A-Fa-f]+).*\/\*(.*)\*\/"
  17. +reg = br".*ETHERTYPE_([^\s]+)\s.0x([0-9A-Fa-f]+).*\/\*(.*)\*\/"
  18. COMPILED = b"""#
  19. # Ethernet frame types
  20. # This file describes some of the various Ethernet
  21. --
  22. 2.20.1