1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2024-12-08 21:49:03 +00:00
send2trash/send2trash/compat.py
2017-08-03 20:52:19 -04:00

19 lines
457 B
Python

# Copyright 2017 Virgil Dupras
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
import sys
import os
PY3 = sys.version_info[0] >= 3
if PY3:
text_type = str
binary_type = bytes
environb = os.environb
else:
text_type = unicode
binary_type = str
environb = os.environ