summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorERYoung11 <YoungEricR@JohnDeere.com>2021-03-10 13:15:58 -0600
committerERYoung11 <YoungEricR@JohnDeere.com>2021-03-10 13:15:58 -0600
commitbca1d94f396e5aed69b789cbd151989b502f0df3 (patch)
tree0ed7a7a79e08112b9724e5ebdca4eb94975007dd
parent469d22f2b6da815aa95b27c9342c3db9e37f9c3b (diff)
skipping initial comments in pgconfig file did not work on Windows.
-rw-r--r--pgcli/main.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pgcli/main.py b/pgcli/main.py
index ea58535f..11dbc322 100644
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -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)