varia.website/venv/lib/python3.11/site-packages/icalendar/compat.py
2024-11-19 14:01:39 +01:00

13 lines
358 B
Python

# -*- coding: utf-8 -*-
import sys
if sys.version_info[0] == 2: # pragma: no cover
unicode_type = unicode
bytes_type = str
iteritems = lambda d, *args, **kwargs: iter(d.iteritems(*args, **kwargs))
else: # pragma: no cover
unicode_type = str
bytes_type = bytes
iteritems = lambda d, *args, **kwargs: iter(d.items(*args, **kwargs))