diff --git a/python_hosts/hosts.py b/python_hosts/hosts.py index bbfa507..a5b7a49 100755 --- a/python_hosts/hosts.py +++ b/python_hosts/hosts.py @@ -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: