From fa8d61c9bdbef15308a759abd3d7cc90be49497a Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Mon, 7 Nov 2022 16:10:28 +0300 Subject: [PATCH] Import `basestring` from `.base` --- vobject/vcard.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/vobject/vcard.py b/vobject/vcard.py index 1941e82..8584e42 100644 --- a/vobject/vcard.py +++ b/vobject/vcard.py @@ -4,16 +4,10 @@ from . import behavior -from .base import ContentLine, registerBehavior, backslashEscape, str_ +from .base import ContentLine, registerBehavior, backslashEscape, basestring, str_ from .icalendar import stringToTextValues -# Python 3 no longer has a basestring type, so.... -try: - basestring = basestring -except NameError: - basestring = (str, bytes) - # ------------------------ vCard structs ---------------------------------------