Skip to content

Commit

Permalink
Replace os.getlogin
Browse files Browse the repository at this point in the history
... according to the recommendation in the python documentation.
  • Loading branch information
kajinamit committed Feb 12, 2024
1 parent e2ec0fa commit 81d8279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pifpaf/drivers/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import getpass
import logging
import os

from pifpaf import drivers

Expand All @@ -27,7 +27,7 @@ def _setUp(self):
os.mkdir(datadir)
os.mkdir(tempdir)

mysql_user_to_use = os.getlogin()
mysql_user_to_use = getpass.getuser()

c, _ = self._exec(["mysqld",
"--no-defaults",
Expand Down

0 comments on commit 81d8279

Please sign in to comment.