mirror of
https://github.com/arsenetar/send2trash.git
synced 2026-01-28 01:21:40 +00:00
python2 removal: more clean up (#107)
1. remove from __future__ as those feature is mandatory >= 3.0 and we are in the future 2. python3 script defaults to UTF-8
This commit is contained in:
@@ -1,12 +1,9 @@
|
|||||||
# encoding: utf-8
|
|
||||||
# Copyright 2017 Virgil Dupras
|
# Copyright 2017 Virgil Dupras
|
||||||
|
|
||||||
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
# 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
|
# which should be included with this package. The terms are also available at
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
# http://www.hardcoded.net/licenses/bsd_license
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
# which should be included with this package. The terms are also available at
|
# which should be included with this package. The terms are also available at
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
# http://www.hardcoded.net/licenses/bsd_license
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from ctypes import cdll, byref, Structure, c_char, c_char_p
|
from ctypes import cdll, byref, Structure, c_char, c_char_p
|
||||||
from ctypes.util import find_library
|
from ctypes.util import find_library
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
# For external volumes this implementation will raise an exception if it can't
|
# For external volumes this implementation will raise an exception if it can't
|
||||||
# find or create the user's trash directory.
|
# find or create the user's trash directory.
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import errno
|
import errno
|
||||||
import shutil
|
import shutil
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# encoding: utf-8
|
|
||||||
# Copyright 2017 Virgil Dupras
|
# Copyright 2017 Virgil Dupras
|
||||||
|
|
||||||
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
# which should be included with this package. The terms are also available at
|
# which should be included with this package. The terms are also available at
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
# http://www.hardcoded.net/licenses/bsd_license
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
from platform import version
|
from platform import version
|
||||||
|
|
||||||
# if windows is vista or newer and pywin32 is available use IFileOperation
|
# if windows is vista or newer and pywin32 is available use IFileOperation
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
# which should be included with this package. The terms are also available at
|
# which should be included with this package. The terms are also available at
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
# http://www.hardcoded.net/licenses/bsd_license
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
import os.path as op
|
import os.path as op
|
||||||
from ctypes import (
|
from ctypes import (
|
||||||
windll,
|
windll,
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
# which should be included with this package. The terms are also available at
|
# which should be included with this package. The terms are also available at
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
# http://www.hardcoded.net/licenses/bsd_license
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
import os.path as op
|
import os.path as op
|
||||||
from platform import version
|
from platform import version
|
||||||
import pythoncom
|
import pythoncom
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# encoding: utf-8
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
from tempfile import NamedTemporaryFile
|
from tempfile import NamedTemporaryFile
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# encoding: utf-8
|
|
||||||
import codecs
|
import codecs
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# encoding: utf-8
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# encoding: utf-8
|
|
||||||
from os import path as op
|
from os import path as op
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user