plexpy/lib/rumps/compat.py
dependabot[bot] 79cf61c53e
Bump rumps from 0.3.0 to 0.4.0 (#1896)
* Bump rumps from 0.3.0 to 0.4.0

Bumps [rumps](https://github.com/jaredks/rumps) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/jaredks/rumps/releases)
- [Changelog](https://github.com/jaredks/rumps/blob/master/CHANGES.rst)
- [Commits](https://github.com/jaredks/rumps/commits)

---
updated-dependencies:
- dependency-name: rumps
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update rumps==0.4.0

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>

[skip ci]
2022-11-14 11:27:16 -08:00

34 lines
591 B
Python

# -*- coding: utf-8 -*-
"""
rumps.compat
~~~~~~~~~~~~
Compatibility for Python 2 and Python 3 major versions.
:copyright: (c) 2020 by Jared Suttles
:license: BSD-3-Clause, see LICENSE for details.
"""
import sys
PY2 = sys.version_info[0] == 2
if not PY2:
binary_type = bytes
text_type = str
string_types = (str,)
iteritems = lambda d: iter(d.items())
import collections.abc as collections_abc
else:
binary_type = ()
text_type = unicode
string_types = (str, unicode)
iteritems = lambda d: d.iteritems()
import collections as collections_abc