This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Employee-Management-Portal/Lib/site-packages/pipenv/vendor/yaspin/helpers.py
Alicja Cięciwa cb8886666c login page
2020-10-27 12:57:58 +01:00

20 lines
329 B
Python

# -*- coding: utf-8 -*-
"""
yaspin.helpers
~~~~~~~~~~~~~~
Helper functions.
"""
from __future__ import absolute_import
from .compat import bytes
from .constants import ENCODING
def to_unicode(text_type, encoding=ENCODING):
if isinstance(text_type, bytes):
return text_type.decode(encoding)
return text_type