1
0
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:
2020-06-18 21:47:06 -05:00
parent 1e099724c5
commit 2e9fa38f56
5 changed files with 12 additions and 10 deletions

View File

@@ -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)