Browse Source

Fix newly-introduced crash under Windows

ref #14
tags/1.4.1
Virgil Dupras 3 years ago
parent
commit
3071684f73
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      send2trash/compat.py

+ 3
- 1
send2trash/compat.py View File

@@ -11,7 +11,9 @@ PY3 = sys.version_info[0] >= 3
if PY3:
text_type = str
binary_type = bytes
environb = os.environb
if os.supports_bytes_environ:
# environb will be unset under Windows, but then again we're not supposed to use it.
environb = os.environb
else:
text_type = unicode
binary_type = str


Loading…
Cancel
Save