X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbup%2Fcompat.py;h=96a228b78ded01d4c40b4f1a57f2c0e3128ac46b;hb=37b8e2e3baf0b6b9900d7a60959d2da006ee3c61;hp=645c12aa75c211e31ac18924d5cc470640fe73f4;hpb=c8af075fbf5fe45ceaf411dc01f7016290e8d794;p=bup.git diff --git a/lib/bup/compat.py b/lib/bup/compat.py index 645c12a..96a228b 100644 --- a/lib/bup/compat.py +++ b/lib/bup/compat.py @@ -9,11 +9,7 @@ from contextlib import ExitStack, nullcontext from os import environb as environ from os import fsdecode, fsencode from shlex import quote -ModuleNotFoundError = ModuleNotFoundError -input = input -range = range -str_type = str -int_types = (int,) + def hexstr(b): """Return hex string (not bytes as with hexlify) representation of b.""" @@ -55,9 +51,6 @@ class pending_raise: def __del__(self): assert self.closed -def items(x): - return x.items() - def argv_bytes(x): """Return the original bytes passed to main() for an argv argument.""" return fsencode(x)