1
0
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:
Yaofei Zheng
2026-01-27 14:57:55 +08:00
committed by GitHub
parent 32d3391b1a
commit ad0f2af984
11 changed files with 0 additions and 13 deletions

View File

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

View 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 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

View File

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

View File

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

View 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

View 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
import os.path as op import os.path as op
from ctypes import ( from ctypes import (
windll, windll,

View 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
import os.path as op import os.path as op
from platform import version from platform import version
import pythoncom import pythoncom

View File

@@ -1,4 +1,3 @@
# encoding: utf-8
import sys import sys
import os import os
from tempfile import NamedTemporaryFile from tempfile import NamedTemporaryFile

View File

@@ -1,4 +1,3 @@
# encoding: utf-8
import codecs import codecs
import os import os
import sys import sys

View File

@@ -1,4 +1,3 @@
# encoding: utf-8
import os import os
import shutil import shutil
import sys import sys

View File

@@ -1,4 +1,3 @@
# encoding: utf-8
from os import path as op from os import path as op
import pytest import pytest