-#! /usr/bin/env python
+#! /usr/bin/env python3
"""Unzip with encoded filenames
- Written by Oleg Broytman. Copyright (C) 2009-2016 PhiloSoft Design.
+ Written by Oleg Broytman. Copyright (C) 2009-2023 PhiloSoft Design.
"""
import sys, os, time
path = zinfo.filename
if isinstance(path, bytes):
path = path.decode('cp866')
- recoded_path = path.encode(default_encoding)
+ recoded_path = path.encode(default_encoding)
+ else:
+ recoded_path = path
print(recoded_path)
if path.startswith('./'):