Skip to content

Commit fe88ba0

Browse files
Sebastian Wagnerwaldbauer-certat
authored andcommitted
ENH: lib/upgrades: use pathlib for path concatentation
1 parent 83ee61a commit fe88ba0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

intelmq/lib/upgrades.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from collections import OrderedDict
88
from pkg_resources import resource_filename
99
from pathlib import Path
10-
import os
1110
from intelmq import CONFIG_DIR
1211

1312
from intelmq.lib.utils import load_configuration, write_configuration
@@ -581,7 +580,7 @@ def v300_bots_file_removal(defaults, runtime, harmonization, dry_run):
581580
"""
582581
changed = None
583582
messages = []
584-
bots_file = Path(os.path.join(CONFIG_DIR, "BOTS"))
583+
bots_file = Path(CONFIG_DIR) / "BOTS"
585584
if bots_file.exists():
586585
if dry_run:
587586
print('Would now remove file {bots_file!r}.')

0 commit comments

Comments
 (0)