mirror of
https://github.com/arsenetar/send2trash.git
synced 2026-03-22 14:41:38 +00:00
Fix some flake8 errors and cleanup
- Fix some flake8 formatting errors - Auto-format files edited - Also ignore some flake8 errors when they are intented - Update .gitignore to ingore local env
This commit is contained in:
@@ -6,6 +6,7 @@ if PY3:
|
||||
else:
|
||||
_permission_error = OSError
|
||||
|
||||
|
||||
class TrashPermissionError(_permission_error):
|
||||
"""A permission error specific to a trash directory.
|
||||
|
||||
@@ -20,6 +21,6 @@ class TrashPermissionError(_permission_error):
|
||||
data between partitions, devices, or network drives, so we don't do it as
|
||||
a fallback.
|
||||
"""
|
||||
|
||||
def __init__(self, filename):
|
||||
_permission_error.__init__(self, errno.EACCES, "Permission denied",
|
||||
filename)
|
||||
_permission_error.__init__(self, errno.EACCES, "Permission denied", filename)
|
||||
|
||||
Reference in New Issue
Block a user