-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Enable PyLint rule R0801 and refactoring
Thank you to Ihor Pryyma (@Ihor-Pryyma) for this contribution. Related to #1755 --------- Co-authored-by: buhtz <c.buhtz@posteo.jp>
- Loading branch information
1 parent
1e0079b
commit e90ce00
Showing
16 changed files
with
99 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-FileCopyrightText: © 2008-2022 Oprea Dan | ||
# SPDX-FileCopyrightText: © 2008-2022 Bart de Koning | ||
# SPDX-FileCopyrightText: © 2008-2022 Richard Bailey | ||
# SPDX-FileCopyrightText: © 2008-2022 Germar Reitze | ||
# SPDX-FileCopyrightText: © 2024 Ihor Pryyma | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# | ||
# This file is part of the program "Back In Time" which is released under GNU | ||
# General Public License v2 (GPLv2). | ||
# See file LICENSE or go to <https://www.gnu.org/licenses/#GPL>. | ||
""" | ||
Constants that are used in the test files. | ||
""" | ||
import grp | ||
import os | ||
import pwd | ||
|
||
CURRENTUID = os.geteuid() | ||
CURRENTUSER = pwd.getpwuid(CURRENTUID).pw_name | ||
CURRENTGID = os.getegid() | ||
CURRENTGROUP = grp.getgrgid(CURRENTGID).gr_name | ||
CURRENTUID = os.geteuid() | ||
CURRENTGID = os.getegid() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.