Varia's website
https://varia.zone
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
358 B
13 lines
358 B
1 week ago
|
# -*- 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))
|