From 31dac5ba5f67a27a3f4542fd9df6cf5d8f66fda6 Mon Sep 17 00:00:00 2001 From: Vincent Liu Date: Wed, 25 Sep 2024 14:25:12 +0100 Subject: [PATCH] Drop python2 support Since we are not testing it in the CI anyway. --- src/lib/pythongen.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/pythongen.ml b/src/lib/pythongen.ml index 2ac75d7..aadaf70 100644 --- a/src/lib/pythongen.ml +++ b/src/lib/pythongen.ml @@ -98,8 +98,9 @@ class ListAction(argparse.Action): let compat_block = [ Line "get_str = str" - ; Line "if sys.version_info[0] > 2:" - ; Block [ Line "long = int"; Line "unicode = str"; Line "str = bytes" ] + ; Line "long = int" + ; Line "unicode = str" + ; Line "str = bytes" ; Line "" ]