From e1b69331e5cf306aad85e6b267c7dfbe5880bd0b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 7 Apr 2015 22:35:54 +0200 Subject: [Lib] send2trash --- lib/send2trash/compat.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/send2trash/compat.py (limited to 'lib/send2trash/compat.py') diff --git a/lib/send2trash/compat.py b/lib/send2trash/compat.py new file mode 100644 index 000000000..0f3a48972 --- /dev/null +++ b/lib/send2trash/compat.py @@ -0,0 +1,13 @@ +# Copyright 2013 Hardcoded Software (http://www.hardcoded.net) + +# 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 +if sys.version < '3': + text_type = unicode + binary_type = str +else: + text_type = str + binary_type = bytes -- cgit v1.2.3