From 8358491e7f9cabcbf3728cc490525ef925fd4cb1 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Fri, 1 Dec 2023 20:19:20 +0100 Subject: [PATCH] More linting rule fixes --- .ruff.toml | 1 + Makefile | 4 ++-- doc/web/source/conf.py | 8 ++++---- patoolib/__init__.py | 1 - patoolib/cli.py | 1 - patoolib/fileutil.py | 1 - patoolib/log.py | 1 - patoolib/mime.py | 1 - patoolib/programs/__init__.py | 1 - patoolib/programs/ar.py | 1 - patoolib/programs/arc.py | 1 - patoolib/programs/archmage.py | 1 - patoolib/programs/arj.py | 1 - patoolib/programs/bsdcpio.py | 1 - patoolib/programs/bsdtar.py | 1 - patoolib/programs/bzip2.py | 1 - patoolib/programs/bzip3.py | 1 - patoolib/programs/cabextract.py | 1 - patoolib/programs/chmlib.py | 1 - patoolib/programs/clzip.py | 1 - patoolib/programs/compress.py | 1 - patoolib/programs/cpio.py | 1 - patoolib/programs/dpkg.py | 1 - patoolib/programs/flac.py | 1 - patoolib/programs/genisoimage.py | 1 - patoolib/programs/gzip.py | 1 - patoolib/programs/isoinfo.py | 1 - patoolib/programs/jar.py | 1 - patoolib/programs/lbzip2.py | 1 - patoolib/programs/lcab.py | 1 - patoolib/programs/lha.py | 1 - patoolib/programs/lhasa.py | 1 - patoolib/programs/lrzip.py | 1 - patoolib/programs/lz4.py | 1 - patoolib/programs/lzip.py | 1 - patoolib/programs/lzma.py | 1 - patoolib/programs/lzop.py | 1 - patoolib/programs/mac.py | 1 - patoolib/programs/nomarch.py | 1 - patoolib/programs/p7azip.py | 1 - patoolib/programs/p7rzip.py | 1 - patoolib/programs/p7zip.py | 1 - patoolib/programs/pbzip2.py | 1 - patoolib/programs/pdlzip.py | 1 - patoolib/programs/pigz.py | 1 - patoolib/programs/plzip.py | 1 - patoolib/programs/py_bz2.py | 1 - patoolib/programs/py_echo.py | 1 - patoolib/programs/py_gzip.py | 1 - patoolib/programs/py_lzma.py | 1 - patoolib/programs/py_tarfile.py | 1 - patoolib/programs/py_zipfile.py | 1 - patoolib/programs/rar.py | 1 - patoolib/programs/rpm.py | 1 - patoolib/programs/rpm2cpio.py | 1 - patoolib/programs/rzip.py | 1 - patoolib/programs/shar.py | 1 - patoolib/programs/shorten.py | 1 - patoolib/programs/star.py | 1 - patoolib/programs/tar.py | 1 - patoolib/programs/unace.py | 1 - patoolib/programs/unadf.py | 1 - patoolib/programs/unalz.py | 1 - patoolib/programs/unar.py | 1 - patoolib/programs/uncompress.py | 1 - patoolib/programs/unrar.py | 1 - patoolib/programs/unshar.py | 1 - patoolib/programs/unzip.py | 1 - patoolib/programs/xdms.py | 1 - patoolib/programs/xz.py | 1 - patoolib/programs/zip.py | 1 - patoolib/programs/zoo.py | 1 - patoolib/programs/zopfli.py | 1 - patoolib/programs/zpaq.py | 1 - patoolib/programs/zstd.py | 1 - patoolib/util.py | 5 ++--- setup.py | 5 ++--- tests/__init__.py | 1 - tests/archives/__init__.py | 1 - tests/archives/test_7z.py | 1 - tests/archives/test_7za.py | 1 - tests/archives/test_7zr.py | 1 - tests/archives/test_ar.py | 1 - tests/archives/test_arc.py | 1 - tests/archives/test_archmage.py | 1 - tests/archives/test_arj.py | 1 - tests/archives/test_bsdcpio.py | 1 - tests/archives/test_bsdtar.py | 1 - tests/archives/test_bzip2.py | 1 - tests/archives/test_bzip3.py | 1 - tests/archives/test_cabextract.py | 1 - tests/archives/test_chmlib.py | 1 - tests/archives/test_clzip.py | 1 - tests/archives/test_compress.py | 1 - tests/archives/test_cpio.py | 1 - tests/archives/test_dpkg.py | 1 - tests/archives/test_flac.py | 1 - tests/archives/test_genisoimage.py | 1 - tests/archives/test_gzip.py | 1 - tests/archives/test_isoinfo.py | 1 - tests/archives/test_jar.py | 1 - tests/archives/test_lbzip2.py | 1 - tests/archives/test_lcab.py | 1 - tests/archives/test_lha.py | 1 - tests/archives/test_lhasa.py | 1 - tests/archives/test_lrzip.py | 1 - tests/archives/test_lz4.py | 1 - tests/archives/test_lzip.py | 1 - tests/archives/test_lzma.py | 1 - tests/archives/test_lzop.py | 1 - tests/archives/test_mac.py | 1 - tests/archives/test_nomarch.py | 1 - tests/archives/test_pbzip2.py | 1 - tests/archives/test_pdlzip.py | 1 - tests/archives/test_pigz.py | 1 - tests/archives/test_plzip.py | 1 - tests/archives/test_pybz2.py | 1 - tests/archives/test_pyecho.py | 1 - tests/archives/test_pygzip.py | 1 - tests/archives/test_pylzma.py | 1 - tests/archives/test_pytarfile.py | 1 - tests/archives/test_pyzipfile.py | 1 - tests/archives/test_rar.py | 1 - tests/archives/test_rpm.py | 1 - tests/archives/test_rpm2cpio.py | 1 - tests/archives/test_rzip.py | 1 - tests/archives/test_shar.py | 1 - tests/archives/test_shorten.py | 1 - tests/archives/test_star.py | 1 - tests/archives/test_tar.py | 1 - tests/archives/test_unace.py | 1 - tests/archives/test_unadf.py | 1 - tests/archives/test_unalz.py | 1 - tests/archives/test_unar.py | 1 - tests/archives/test_uncompressreal.py | 1 - tests/archives/test_unrar.py | 1 - tests/archives/test_unshar.py | 1 - tests/archives/test_unzip.py | 1 - tests/archives/test_xdms.py | 1 - tests/archives/test_xz.py | 1 - tests/archives/test_zip.py | 1 - tests/archives/test_zoo.py | 1 - tests/archives/test_zopfli.py | 1 - tests/archives/test_zpaq.py | 1 - tests/test_config.py | 1 - tests/test_create.py | 1 - tests/test_diff.py | 1 - tests/test_extract.py | 1 - tests/test_fileutil.py | 1 - tests/test_formats.py | 1 - tests/test_help.py | 1 - tests/test_list.py | 1 - tests/test_mime.py | 1 - tests/test_repack.py | 1 - tests/test_search.py | 1 - tests/test_test.py | 1 - tests/test_util.py | 1 - tests/test_version.py | 1 - 158 files changed, 11 insertions(+), 165 deletions(-) diff --git a/.ruff.toml b/.ruff.toml index 23289db6..c95250ae 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -4,6 +4,7 @@ select = [ "B", # flake8-bugbear "I", # isort "D", # pydocstyle + "UP", # pyupgrade ] # Ignored rules diff --git a/Makefile b/Makefile index 1baf0b7e..421ecb2f 100644 --- a/Makefile +++ b/Makefile @@ -148,11 +148,11 @@ checkchangelog: .PHONY: lint lint: - ruff setup.py patoolib tests + ruff setup.py patoolib tests doc/web/source .PHONY: reformat reformat: - ruff --fix setup.py patoolib tests + ruff --fix setup.py patoolib tests doc/web/source .PHONY: checkoutdated checkoutdated: diff --git a/doc/web/source/conf.py b/doc/web/source/conf.py index 0645ca98..e22a35d5 100644 --- a/doc/web/source/conf.py +++ b/doc/web/source/conf.py @@ -1,8 +1,8 @@ -# Configuration file for the Sphinx documentation builder. -# -# For the full list of built-in configuration values, see the documentation: -# https://www.sphinx-doc.org/en/master/usage/configuration.html +"""Configuration file for the Sphinx documentation builder. +For the full list of built-in configuration values, see the documentation: +https://www.sphinx-doc.org/en/master/usage/configuration.html +""" # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information diff --git a/patoolib/__init__.py b/patoolib/__init__.py index 259ad2dd..db6473f2 100644 --- a/patoolib/__init__.py +++ b/patoolib/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/cli.py b/patoolib/cli.py index 51d1bc40..41306b63 100644 --- a/patoolib/cli.py +++ b/patoolib/cli.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/fileutil.py b/patoolib/fileutil.py index 60bbd67d..ad4f0a60 100644 --- a/patoolib/fileutil.py +++ b/patoolib/fileutil.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/log.py b/patoolib/log.py index e97a0a92..3a8472d5 100644 --- a/patoolib/log.py +++ b/patoolib/log.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/mime.py b/patoolib/mime.py index 105f0550..fda5202a 100644 --- a/patoolib/mime.py +++ b/patoolib/mime.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/__init__.py b/patoolib/programs/__init__.py index 551dcf60..d9c6c0fa 100644 --- a/patoolib/programs/__init__.py +++ b/patoolib/programs/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/ar.py b/patoolib/programs/ar.py index 6da619a1..6aa185e1 100644 --- a/patoolib/programs/ar.py +++ b/patoolib/programs/ar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/arc.py b/patoolib/programs/arc.py index 8ed4e533..f2c9f2d0 100644 --- a/patoolib/programs/arc.py +++ b/patoolib/programs/arc.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/archmage.py b/patoolib/programs/archmage.py index f4154b73..0972d619 100644 --- a/patoolib/programs/archmage.py +++ b/patoolib/programs/archmage.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/arj.py b/patoolib/programs/arj.py index 6bc2d592..954c022e 100644 --- a/patoolib/programs/arj.py +++ b/patoolib/programs/arj.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/bsdcpio.py b/patoolib/programs/bsdcpio.py index 74b8c953..b6b92f01 100644 --- a/patoolib/programs/bsdcpio.py +++ b/patoolib/programs/bsdcpio.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/bsdtar.py b/patoolib/programs/bsdtar.py index f89fbff8..771139f3 100644 --- a/patoolib/programs/bsdtar.py +++ b/patoolib/programs/bsdtar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/bzip2.py b/patoolib/programs/bzip2.py index 001ac177..5ec48ab4 100644 --- a/patoolib/programs/bzip2.py +++ b/patoolib/programs/bzip2.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/bzip3.py b/patoolib/programs/bzip3.py index b64a5a6f..52bb539b 100644 --- a/patoolib/programs/bzip3.py +++ b/patoolib/programs/bzip3.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/cabextract.py b/patoolib/programs/cabextract.py index b00f6880..0eddf535 100644 --- a/patoolib/programs/cabextract.py +++ b/patoolib/programs/cabextract.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/chmlib.py b/patoolib/programs/chmlib.py index 552e5ce4..452772cc 100644 --- a/patoolib/programs/chmlib.py +++ b/patoolib/programs/chmlib.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/clzip.py b/patoolib/programs/clzip.py index 1bba91b1..88c6890d 100644 --- a/patoolib/programs/clzip.py +++ b/patoolib/programs/clzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2011-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/compress.py b/patoolib/programs/compress.py index e3054702..bffcfe51 100644 --- a/patoolib/programs/compress.py +++ b/patoolib/programs/compress.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/cpio.py b/patoolib/programs/cpio.py index b17c0c99..c718d430 100644 --- a/patoolib/programs/cpio.py +++ b/patoolib/programs/cpio.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/dpkg.py b/patoolib/programs/dpkg.py index 6069cca8..084eeaf6 100644 --- a/patoolib/programs/dpkg.py +++ b/patoolib/programs/dpkg.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/flac.py b/patoolib/programs/flac.py index 85265cbf..c85951a6 100644 --- a/patoolib/programs/flac.py +++ b/patoolib/programs/flac.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/genisoimage.py b/patoolib/programs/genisoimage.py index d2165bca..a205c05f 100644 --- a/patoolib/programs/genisoimage.py +++ b/patoolib/programs/genisoimage.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2013-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/gzip.py b/patoolib/programs/gzip.py index e35f52c6..35b43026 100644 --- a/patoolib/programs/gzip.py +++ b/patoolib/programs/gzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/isoinfo.py b/patoolib/programs/isoinfo.py index fd4ff302..eaf736fb 100644 --- a/patoolib/programs/isoinfo.py +++ b/patoolib/programs/isoinfo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2013-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/jar.py b/patoolib/programs/jar.py index cf6e9b65..af074076 100644 --- a/patoolib/programs/jar.py +++ b/patoolib/programs/jar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/lbzip2.py b/patoolib/programs/lbzip2.py index 42779de3..5f625611 100644 --- a/patoolib/programs/lbzip2.py +++ b/patoolib/programs/lbzip2.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/lcab.py b/patoolib/programs/lcab.py index b40c356d..824a3ad9 100644 --- a/patoolib/programs/lcab.py +++ b/patoolib/programs/lcab.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/lha.py b/patoolib/programs/lha.py index ac789fbe..1797fe8a 100644 --- a/patoolib/programs/lha.py +++ b/patoolib/programs/lha.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/lhasa.py b/patoolib/programs/lhasa.py index 3e9d3e48..db549487 100644 --- a/patoolib/programs/lhasa.py +++ b/patoolib/programs/lhasa.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/lrzip.py b/patoolib/programs/lrzip.py index 260e8196..bd97b25d 100644 --- a/patoolib/programs/lrzip.py +++ b/patoolib/programs/lrzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/lz4.py b/patoolib/programs/lz4.py index 37bad558..964c8f21 100644 --- a/patoolib/programs/lz4.py +++ b/patoolib/programs/lz4.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/lzip.py b/patoolib/programs/lzip.py index 56e046ca..46f37b73 100644 --- a/patoolib/programs/lzip.py +++ b/patoolib/programs/lzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/lzma.py b/patoolib/programs/lzma.py index b2870fc5..d57addf6 100644 --- a/patoolib/programs/lzma.py +++ b/patoolib/programs/lzma.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/lzop.py b/patoolib/programs/lzop.py index ac0279ba..57e2e411 100644 --- a/patoolib/programs/lzop.py +++ b/patoolib/programs/lzop.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/mac.py b/patoolib/programs/mac.py index 8e867fab..80296474 100644 --- a/patoolib/programs/mac.py +++ b/patoolib/programs/mac.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/nomarch.py b/patoolib/programs/nomarch.py index cbfacf1b..5ce84534 100644 --- a/patoolib/programs/nomarch.py +++ b/patoolib/programs/nomarch.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/p7azip.py b/patoolib/programs/p7azip.py index 3ae9f5f1..622f5ab6 100644 --- a/patoolib/programs/p7azip.py +++ b/patoolib/programs/p7azip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/p7rzip.py b/patoolib/programs/p7rzip.py index a32852a4..77de7096 100644 --- a/patoolib/programs/p7rzip.py +++ b/patoolib/programs/p7rzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/p7zip.py b/patoolib/programs/p7zip.py index 3a829888..f2b33a23 100644 --- a/patoolib/programs/p7zip.py +++ b/patoolib/programs/p7zip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/pbzip2.py b/patoolib/programs/pbzip2.py index a48f91d6..7ecabea4 100644 --- a/patoolib/programs/pbzip2.py +++ b/patoolib/programs/pbzip2.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/pdlzip.py b/patoolib/programs/pdlzip.py index 4920d706..ed541067 100644 --- a/patoolib/programs/pdlzip.py +++ b/patoolib/programs/pdlzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2011-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/pigz.py b/patoolib/programs/pigz.py index 8890d010..f5a49dd6 100644 --- a/patoolib/programs/pigz.py +++ b/patoolib/programs/pigz.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/plzip.py b/patoolib/programs/plzip.py index 76507336..62deff48 100644 --- a/patoolib/programs/plzip.py +++ b/patoolib/programs/plzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/py_bz2.py b/patoolib/programs/py_bz2.py index ff9e20b5..0c46c5fb 100644 --- a/patoolib/programs/py_bz2.py +++ b/patoolib/programs/py_bz2.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/py_echo.py b/patoolib/programs/py_echo.py index 7c90eda3..6880cbd2 100644 --- a/patoolib/programs/py_echo.py +++ b/patoolib/programs/py_echo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/py_gzip.py b/patoolib/programs/py_gzip.py index b3de58e7..b819dcec 100644 --- a/patoolib/programs/py_gzip.py +++ b/patoolib/programs/py_gzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/py_lzma.py b/patoolib/programs/py_lzma.py index 61054cb6..8517445e 100644 --- a/patoolib/programs/py_lzma.py +++ b/patoolib/programs/py_lzma.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/py_tarfile.py b/patoolib/programs/py_tarfile.py index 130640a4..1ea4f0df 100644 --- a/patoolib/programs/py_tarfile.py +++ b/patoolib/programs/py_tarfile.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/py_zipfile.py b/patoolib/programs/py_zipfile.py index 0b17916c..4b595755 100644 --- a/patoolib/programs/py_zipfile.py +++ b/patoolib/programs/py_zipfile.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/rar.py b/patoolib/programs/rar.py index 677bd8c9..f050de20 100644 --- a/patoolib/programs/rar.py +++ b/patoolib/programs/rar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/rpm.py b/patoolib/programs/rpm.py index 9b61f6d6..890461be 100644 --- a/patoolib/programs/rpm.py +++ b/patoolib/programs/rpm.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/rpm2cpio.py b/patoolib/programs/rpm2cpio.py index 3cb23191..66826e2d 100644 --- a/patoolib/programs/rpm2cpio.py +++ b/patoolib/programs/rpm2cpio.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/rzip.py b/patoolib/programs/rzip.py index 7822f5ec..84027756 100644 --- a/patoolib/programs/rzip.py +++ b/patoolib/programs/rzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/shar.py b/patoolib/programs/shar.py index f5be3d4b..4d8f625e 100644 --- a/patoolib/programs/shar.py +++ b/patoolib/programs/shar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/shorten.py b/patoolib/programs/shorten.py index 47be4c74..001f6386 100644 --- a/patoolib/programs/shorten.py +++ b/patoolib/programs/shorten.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/star.py b/patoolib/programs/star.py index be37ccfa..a0822cb9 100644 --- a/patoolib/programs/star.py +++ b/patoolib/programs/star.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/tar.py b/patoolib/programs/tar.py index 84fab20f..99874a32 100644 --- a/patoolib/programs/tar.py +++ b/patoolib/programs/tar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/unace.py b/patoolib/programs/unace.py index 3e17f969..d0a14522 100644 --- a/patoolib/programs/unace.py +++ b/patoolib/programs/unace.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/unadf.py b/patoolib/programs/unadf.py index 6e9c5b99..413dee24 100644 --- a/patoolib/programs/unadf.py +++ b/patoolib/programs/unadf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/unalz.py b/patoolib/programs/unalz.py index aaf2b106..0822c319 100644 --- a/patoolib/programs/unalz.py +++ b/patoolib/programs/unalz.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/unar.py b/patoolib/programs/unar.py index 8774a0ad..4237103d 100644 --- a/patoolib/programs/unar.py +++ b/patoolib/programs/unar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/uncompress.py b/patoolib/programs/uncompress.py index e0983d06..bcdce4c3 100644 --- a/patoolib/programs/uncompress.py +++ b/patoolib/programs/uncompress.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/unrar.py b/patoolib/programs/unrar.py index ccfe6b7b..8ab32146 100644 --- a/patoolib/programs/unrar.py +++ b/patoolib/programs/unrar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/unshar.py b/patoolib/programs/unshar.py index 249f5e5b..69529517 100644 --- a/patoolib/programs/unshar.py +++ b/patoolib/programs/unshar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/unzip.py b/patoolib/programs/unzip.py index 4b11ae61..bec31fac 100644 --- a/patoolib/programs/unzip.py +++ b/patoolib/programs/unzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/xdms.py b/patoolib/programs/xdms.py index 2d8f6af9..606f3f5e 100644 --- a/patoolib/programs/xdms.py +++ b/patoolib/programs/xdms.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2011-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/xz.py b/patoolib/programs/xz.py index 8c837896..9b194abf 100644 --- a/patoolib/programs/xz.py +++ b/patoolib/programs/xz.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/zip.py b/patoolib/programs/zip.py index 3b5d2167..f189a883 100644 --- a/patoolib/programs/zip.py +++ b/patoolib/programs/zip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/zoo.py b/patoolib/programs/zoo.py index f6c9f342..a1fdec99 100644 --- a/patoolib/programs/zoo.py +++ b/patoolib/programs/zoo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/zopfli.py b/patoolib/programs/zopfli.py index 41f74fcb..61161c03 100644 --- a/patoolib/programs/zopfli.py +++ b/patoolib/programs/zopfli.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2013-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/zpaq.py b/patoolib/programs/zpaq.py index 02514cf3..2c5e7065 100644 --- a/patoolib/programs/zpaq.py +++ b/patoolib/programs/zpaq.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2014-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/programs/zstd.py b/patoolib/programs/zstd.py index 3a2689a3..1c751190 100644 --- a/patoolib/programs/zstd.py +++ b/patoolib/programs/zstd.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/patoolib/util.py b/patoolib/util.py index b6dcea6b..1e4fc6d7 100644 --- a/patoolib/util.py +++ b/patoolib/util.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify @@ -25,7 +24,7 @@ class PatoolError(Exception): pass -class memoized(object): +class memoized: """Decorator that caches a function's return value each time it is called. If called later with the same arguments, the cached value is returned, and not re-evaluated. @@ -183,7 +182,7 @@ def get_nt_7z_dir(): return winreg.QueryValueEx(key, "Path")[0] finally: winreg.CloseKey(key) - except WindowsError: + except OSError: return "" diff --git a/setup.py b/setup.py index 1de4a6f7..673778e0 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify @@ -28,7 +27,7 @@ def read_configdata(basedir): """Read package meta data from configuration module.""" configdata = {} configdata_py = os.path.join(basedir, "patoolib", "configuration.py") - with open(configdata_py, "r", encoding="utf-8") as f: + with open(configdata_py, encoding="utf-8") as f: exec(f.read(), configdata) return configdata @@ -36,7 +35,7 @@ def read_configdata(basedir): def read_readme(basedir): """Get contents of the README.md file.""" readme_md = os.path.join(basedir,"README.md") - with open(readme_md, "r", encoding="utf-8") as f: + with open(readme_md, encoding="utf-8") as f: return f.read() diff --git a/tests/__init__.py b/tests/__init__.py index 936946cf..ec01f6dd 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/__init__.py b/tests/archives/__init__.py index 159c4710..9b963744 100644 --- a/tests/archives/__init__.py +++ b/tests/archives/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_7z.py b/tests/archives/test_7z.py index 38cfde7c..f8e0e7ff 100644 --- a/tests/archives/test_7z.py +++ b/tests/archives/test_7z.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_7za.py b/tests/archives/test_7za.py index 9fff21e9..3b681642 100644 --- a/tests/archives/test_7za.py +++ b/tests/archives/test_7za.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_7zr.py b/tests/archives/test_7zr.py index 2f357294..0fb872b1 100644 --- a/tests/archives/test_7zr.py +++ b/tests/archives/test_7zr.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_ar.py b/tests/archives/test_ar.py index 4e2f3e8b..8f44b332 100644 --- a/tests/archives/test_ar.py +++ b/tests/archives/test_ar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_arc.py b/tests/archives/test_arc.py index 669df17d..dc9ec09f 100644 --- a/tests/archives/test_arc.py +++ b/tests/archives/test_arc.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_archmage.py b/tests/archives/test_archmage.py index 4c04b72a..6e61dbad 100644 --- a/tests/archives/test_archmage.py +++ b/tests/archives/test_archmage.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_arj.py b/tests/archives/test_arj.py index 6b40a63d..443878bb 100644 --- a/tests/archives/test_arj.py +++ b/tests/archives/test_arj.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_bsdcpio.py b/tests/archives/test_bsdcpio.py index f61d21ce..c60a37d7 100644 --- a/tests/archives/test_bsdcpio.py +++ b/tests/archives/test_bsdcpio.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_bsdtar.py b/tests/archives/test_bsdtar.py index a1d2adea..f16569cc 100644 --- a/tests/archives/test_bsdtar.py +++ b/tests/archives/test_bsdtar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_bzip2.py b/tests/archives/test_bzip2.py index f11ea78a..050fd326 100644 --- a/tests/archives/test_bzip2.py +++ b/tests/archives/test_bzip2.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_bzip3.py b/tests/archives/test_bzip3.py index ae777dbf..3425c278 100644 --- a/tests/archives/test_bzip3.py +++ b/tests/archives/test_bzip3.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_cabextract.py b/tests/archives/test_cabextract.py index a7eb93d3..5ae8c8fb 100644 --- a/tests/archives/test_cabextract.py +++ b/tests/archives/test_cabextract.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_chmlib.py b/tests/archives/test_chmlib.py index 8400dd78..251a413e 100644 --- a/tests/archives/test_chmlib.py +++ b/tests/archives/test_chmlib.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_clzip.py b/tests/archives/test_clzip.py index ff684ad5..9e3b16d8 100644 --- a/tests/archives/test_clzip.py +++ b/tests/archives/test_clzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_compress.py b/tests/archives/test_compress.py index be1c4f0a..e69b2bf8 100644 --- a/tests/archives/test_compress.py +++ b/tests/archives/test_compress.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_cpio.py b/tests/archives/test_cpio.py index bd152ac8..14900588 100644 --- a/tests/archives/test_cpio.py +++ b/tests/archives/test_cpio.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_dpkg.py b/tests/archives/test_dpkg.py index cf5d0800..2bd90b65 100644 --- a/tests/archives/test_dpkg.py +++ b/tests/archives/test_dpkg.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_flac.py b/tests/archives/test_flac.py index c44c48dc..4b1c93f6 100644 --- a/tests/archives/test_flac.py +++ b/tests/archives/test_flac.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_genisoimage.py b/tests/archives/test_genisoimage.py index 8620198b..d26cff02 100644 --- a/tests/archives/test_genisoimage.py +++ b/tests/archives/test_genisoimage.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2013-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_gzip.py b/tests/archives/test_gzip.py index 184c8303..b12ef059 100644 --- a/tests/archives/test_gzip.py +++ b/tests/archives/test_gzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_isoinfo.py b/tests/archives/test_isoinfo.py index a4a406e3..14039939 100644 --- a/tests/archives/test_isoinfo.py +++ b/tests/archives/test_isoinfo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2013-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_jar.py b/tests/archives/test_jar.py index 5f03977e..6cdec328 100644 --- a/tests/archives/test_jar.py +++ b/tests/archives/test_jar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_lbzip2.py b/tests/archives/test_lbzip2.py index 761fc68f..884bf33a 100644 --- a/tests/archives/test_lbzip2.py +++ b/tests/archives/test_lbzip2.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_lcab.py b/tests/archives/test_lcab.py index f0ec810c..e639087a 100644 --- a/tests/archives/test_lcab.py +++ b/tests/archives/test_lcab.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_lha.py b/tests/archives/test_lha.py index 1e5e63b4..034c4a79 100644 --- a/tests/archives/test_lha.py +++ b/tests/archives/test_lha.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_lhasa.py b/tests/archives/test_lhasa.py index d2f3deea..0bcd2bbf 100644 --- a/tests/archives/test_lhasa.py +++ b/tests/archives/test_lhasa.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_lrzip.py b/tests/archives/test_lrzip.py index b0d5b5b4..0fbc4cf9 100644 --- a/tests/archives/test_lrzip.py +++ b/tests/archives/test_lrzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_lz4.py b/tests/archives/test_lz4.py index aebe6d03..60eb8f37 100644 --- a/tests/archives/test_lz4.py +++ b/tests/archives/test_lz4.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_lzip.py b/tests/archives/test_lzip.py index 25c8a611..d2f0da4a 100644 --- a/tests/archives/test_lzip.py +++ b/tests/archives/test_lzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_lzma.py b/tests/archives/test_lzma.py index 1ed3bf51..e415af68 100644 --- a/tests/archives/test_lzma.py +++ b/tests/archives/test_lzma.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_lzop.py b/tests/archives/test_lzop.py index 421727df..8f5c3159 100644 --- a/tests/archives/test_lzop.py +++ b/tests/archives/test_lzop.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_mac.py b/tests/archives/test_mac.py index 03c3a72e..b2a46eae 100644 --- a/tests/archives/test_mac.py +++ b/tests/archives/test_mac.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_nomarch.py b/tests/archives/test_nomarch.py index d7bd6e0c..3137e325 100644 --- a/tests/archives/test_nomarch.py +++ b/tests/archives/test_nomarch.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_pbzip2.py b/tests/archives/test_pbzip2.py index 7adb39e2..8b186375 100644 --- a/tests/archives/test_pbzip2.py +++ b/tests/archives/test_pbzip2.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_pdlzip.py b/tests/archives/test_pdlzip.py index cc4d7316..92602a78 100644 --- a/tests/archives/test_pdlzip.py +++ b/tests/archives/test_pdlzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_pigz.py b/tests/archives/test_pigz.py index fae77ea1..6390ffb1 100644 --- a/tests/archives/test_pigz.py +++ b/tests/archives/test_pigz.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_plzip.py b/tests/archives/test_plzip.py index 6d39feed..1ba74c04 100644 --- a/tests/archives/test_plzip.py +++ b/tests/archives/test_plzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_pybz2.py b/tests/archives/test_pybz2.py index 522491b2..b682dae7 100644 --- a/tests/archives/test_pybz2.py +++ b/tests/archives/test_pybz2.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_pyecho.py b/tests/archives/test_pyecho.py index 58b51880..024b7d22 100644 --- a/tests/archives/test_pyecho.py +++ b/tests/archives/test_pyecho.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_pygzip.py b/tests/archives/test_pygzip.py index e73d981c..1a68ddd0 100644 --- a/tests/archives/test_pygzip.py +++ b/tests/archives/test_pygzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_pylzma.py b/tests/archives/test_pylzma.py index c3ca0a29..e39b269e 100644 --- a/tests/archives/test_pylzma.py +++ b/tests/archives/test_pylzma.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2013-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_pytarfile.py b/tests/archives/test_pytarfile.py index f04755cf..9c4858f9 100644 --- a/tests/archives/test_pytarfile.py +++ b/tests/archives/test_pytarfile.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_pyzipfile.py b/tests/archives/test_pyzipfile.py index 13a238b6..8b7dc132 100644 --- a/tests/archives/test_pyzipfile.py +++ b/tests/archives/test_pyzipfile.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_rar.py b/tests/archives/test_rar.py index 83069c5e..bd9984bf 100644 --- a/tests/archives/test_rar.py +++ b/tests/archives/test_rar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_rpm.py b/tests/archives/test_rpm.py index f19592c1..66bba3a8 100644 --- a/tests/archives/test_rpm.py +++ b/tests/archives/test_rpm.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_rpm2cpio.py b/tests/archives/test_rpm2cpio.py index e4b38c8e..aa8b4305 100644 --- a/tests/archives/test_rpm2cpio.py +++ b/tests/archives/test_rpm2cpio.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_rzip.py b/tests/archives/test_rzip.py index 976526c9..d5b7d3fb 100644 --- a/tests/archives/test_rzip.py +++ b/tests/archives/test_rzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_shar.py b/tests/archives/test_shar.py index e84768a3..f32d3d10 100644 --- a/tests/archives/test_shar.py +++ b/tests/archives/test_shar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_shorten.py b/tests/archives/test_shorten.py index a0cc657d..2fb6bae6 100644 --- a/tests/archives/test_shorten.py +++ b/tests/archives/test_shorten.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_star.py b/tests/archives/test_star.py index 92cb9213..8ff901ca 100644 --- a/tests/archives/test_star.py +++ b/tests/archives/test_star.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_tar.py b/tests/archives/test_tar.py index e2baabda..e6c44a84 100644 --- a/tests/archives/test_tar.py +++ b/tests/archives/test_tar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_unace.py b/tests/archives/test_unace.py index 87ea0dfc..20cf935a 100644 --- a/tests/archives/test_unace.py +++ b/tests/archives/test_unace.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_unadf.py b/tests/archives/test_unadf.py index e01c8cd0..ab182c05 100644 --- a/tests/archives/test_unadf.py +++ b/tests/archives/test_unadf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_unalz.py b/tests/archives/test_unalz.py index 323a8304..6b438f1b 100644 --- a/tests/archives/test_unalz.py +++ b/tests/archives/test_unalz.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_unar.py b/tests/archives/test_unar.py index 51bef210..95adb221 100644 --- a/tests/archives/test_unar.py +++ b/tests/archives/test_unar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_uncompressreal.py b/tests/archives/test_uncompressreal.py index 2bf14b00..a3eeda61 100644 --- a/tests/archives/test_uncompressreal.py +++ b/tests/archives/test_uncompressreal.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_unrar.py b/tests/archives/test_unrar.py index 3d7a3986..bc270f25 100644 --- a/tests/archives/test_unrar.py +++ b/tests/archives/test_unrar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_unshar.py b/tests/archives/test_unshar.py index b8b8cb84..edb6602f 100644 --- a/tests/archives/test_unshar.py +++ b/tests/archives/test_unshar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_unzip.py b/tests/archives/test_unzip.py index 152b24a3..c7b3b84f 100644 --- a/tests/archives/test_unzip.py +++ b/tests/archives/test_unzip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_xdms.py b/tests/archives/test_xdms.py index 263d25ca..4f94c09b 100644 --- a/tests/archives/test_xdms.py +++ b/tests/archives/test_xdms.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_xz.py b/tests/archives/test_xz.py index 003d7651..98284f82 100644 --- a/tests/archives/test_xz.py +++ b/tests/archives/test_xz.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_zip.py b/tests/archives/test_zip.py index 47b2fbf1..b3adfc63 100644 --- a/tests/archives/test_zip.py +++ b/tests/archives/test_zip.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_zoo.py b/tests/archives/test_zoo.py index bc633a60..39736a88 100644 --- a/tests/archives/test_zoo.py +++ b/tests/archives/test_zoo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_zopfli.py b/tests/archives/test_zopfli.py index 71d19d92..759d1de3 100644 --- a/tests/archives/test_zopfli.py +++ b/tests/archives/test_zopfli.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2013-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/archives/test_zpaq.py b/tests/archives/test_zpaq.py index ce391a28..aa763b6a 100644 --- a/tests/archives/test_zpaq.py +++ b/tests/archives/test_zpaq.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_config.py b/tests/test_config.py index 398ab65f..8f9abfdb 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_create.py b/tests/test_create.py index 2b4adbd2..c82d9b17 100644 --- a/tests/test_create.py +++ b/tests/test_create.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2013-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_diff.py b/tests/test_diff.py index dbebbbc4..171f4f4d 100644 --- a/tests/test_diff.py +++ b/tests/test_diff.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_extract.py b/tests/test_extract.py index afb67965..948282e4 100644 --- a/tests/test_extract.py +++ b/tests/test_extract.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2013-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_fileutil.py b/tests/test_fileutil.py index 6ef916ba..d36b2da0 100644 --- a/tests/test_fileutil.py +++ b/tests/test_fileutil.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_formats.py b/tests/test_formats.py index ae2c5113..ce4822ed 100644 --- a/tests/test_formats.py +++ b/tests/test_formats.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_help.py b/tests/test_help.py index 361bb964..d88b9e85 100644 --- a/tests/test_help.py +++ b/tests/test_help.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_list.py b/tests/test_list.py index 7174652e..80a21b5e 100644 --- a/tests/test_list.py +++ b/tests/test_list.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2013-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_mime.py b/tests/test_mime.py index 617969e4..94253f2e 100644 --- a/tests/test_mime.py +++ b/tests/test_mime.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_repack.py b/tests/test_repack.py index 1a9015bc..50151621 100644 --- a/tests/test_repack.py +++ b/tests/test_repack.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_search.py b/tests/test_search.py index e5ffc3bf..23ccecad 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2013-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_test.py b/tests/test_test.py index c23bec94..e6b4b842 100644 --- a/tests/test_test.py +++ b/tests/test_test.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2013-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_util.py b/tests/test_util.py index ab08e5fd..8a2e97c3 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2010-2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify diff --git a/tests/test_version.py b/tests/test_version.py index 45995fa5..b4236715 100644 --- a/tests/test_version.py +++ b/tests/test_version.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2023 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify