Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
9ad81143
Commit
9ad81143
authored
Nov 9, 2014
by
JackDandy
Browse files
Options
Downloads
Patches
Plain Diff
Fix invalid use of str() in the Send2Trash library for platforms other.
parent
80012e83
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES.md
+1
-0
1 addition, 0 deletions
CHANGES.md
lib/send2trash/plat_other.py
+3
-1
3 additions, 1 deletion
lib/send2trash/plat_other.py
with
4 additions
and
1 deletion
CHANGES.md
+
1
−
0
View file @
9ad81143
...
...
@@ -66,6 +66,7 @@
*
Fix display issue of season tables in displayShow view / Display Specials
*
Change to suppress reporting of Tornado exception error 1
*
Fix progress sort direction for poster layout view on home page
*
Fix invalid use of str() in the Send2Trash library for platforms other
### 0.2.1 (2014-10-22 06:41:00 UTC)
...
...
This diff is collapsed.
Click to expand it.
lib/send2trash/plat_other.py
+
3
−
1
View file @
9ad81143
...
...
@@ -133,7 +133,9 @@ def get_dev(path):
def
send2trash
(
path
):
if
not
isinstance
(
path
,
str
):
path
=
str
(
path
,
sys
.
getfilesystemencoding
())
# path = str(path, sys.getfilesystemencoding()) # removed invalid arg passed to str function, shouldn't be used anyway
path
=
str
(
path
)
if
not
op
.
exists
(
path
):
raise
OSError
(
"
File not found: %s
"
%
path
)
# ...should check whether the user has the necessary permissions to delete
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment