[swarming] Remove six from client/utils
Bug: 1247959
Change-Id: I627c99b086365b047d175a919ba03a4bf0978c7d
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-py/+/3385084
Auto-Submit: Junji Watanabe <jwata@google.com>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
NOKEYCHECK=True
GitOrigin-RevId: 173496da114efb94dceedb58e588b9c58dabc5e9
diff --git a/utils/logging_utils.py b/utils/logging_utils.py
index 488da79..d603588 100644
--- a/utils/logging_utils.py
+++ b/utils/logging_utils.py
@@ -17,8 +17,6 @@
import tempfile
import time
-import six
-
from utils import file_path
# This works around file locking issue on Windows specifically in the case of
@@ -54,7 +52,6 @@
See https://bugs.python.org/issue15244 for inspiration.
"""
- path = six.text_type(path)
handle = ctypes.windll.kernel32.CreateFileW(
path,
GENERIC_READ|GENERIC_WRITE,
@@ -202,8 +199,7 @@
# Setup up logging to a constant file so we can debug issues where
# the results aren't properly sent to the result URL.
if filename:
- file_path.ensure_tree(
- os.path.dirname(os.path.abspath(six.text_type(filename))))
+ file_path.ensure_tree(os.path.dirname(os.path.abspath(filename)))
try:
rotating_file = NoInheritRotatingFileHandler(
filename, maxBytes=10 * 1024 * 1024, backupCount=5,