Skip to content

Commit

Permalink
Fix import_file missing comment issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mago960806 authored and jonhadfield committed Jul 27, 2024
1 parent 36f1cb9 commit f8f6ec0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion python_hosts/hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ def import_file(self, import_file_path=None):
if (not stripped_entry) or (stripped_entry.startswith('#')):
skipped += 1
else:
line = line.partition('#')[0]
line = line.rstrip()
import_entry = HostsEntry.str_to_hostentry(line)
if import_entry:
Expand Down

0 comments on commit f8f6ec0

Please sign in to comment.