1
0
Fork 0

Merge pull request #1258 from ERYoung11/fix_test_main_windows_error

skipping initial comments in pgconfig file did not work on Windows.
This commit is contained in:
Georgy Frolov 2021-03-11 08:24:13 +03:00 committed by GitHub
commit e009995e9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -116,6 +116,7 @@ Contributors:
* Kevin Marsh (kevinmarsh)
* Eero Ruohola (ruohola)
* Miroslav Šedivý (eumiro)
* Eric R Young (ERYoung11)
Creator:
--------

View File

@ -21,7 +21,6 @@ import datetime as dt
import itertools
import platform
from time import time, sleep
from codecs import open
keyring = None # keyring will be loaded later
@ -1517,7 +1516,7 @@ def parse_service_info(service):
if not service or not os.path.exists(service_file):
# nothing to do
return None, service_file
with open(service_file) as f:
with open(service_file, newline="") as f:
skipped_lines = skip_initial_comment(f)
try:
service_file_config = ConfigObj(f)