Skip to content

Commit

Permalink
fix for issue 421
Browse files Browse the repository at this point in the history
  • Loading branch information
tomweber-sas committed Nov 17, 2021
1 parent 79a4a94 commit bddca9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions saspy/sasiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ def __init__(self, session, **kwargs):
fid = open(pwf, mode='r')
for line in fid:
if line.startswith(self.authkey):
user = line.partition('user')[2].lstrip().partition(' ')[0].partition('\n')[0]
pw = line.partition('password')[2].lstrip().partition(' ')[0].partition('\n')[0]
user = line.partition(' user')[2].lstrip().partition(' ')[0].partition('\n')[0]
pw = line.partition(' password')[2].lstrip().partition(' ')[0].partition('\n')[0]
found = True
break
fid.close()
Expand Down
4 changes: 2 additions & 2 deletions saspy/sasioiom.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ def _startsas(self):
fid = open(pwf, mode='r')
for line in fid:
if line.startswith(self.sascfg.authkey):
user = line.partition('user')[2].lstrip().partition(' ')[0].partition('\n')[0]
pw = line.partition('password')[2].lstrip().partition(' ')[0].partition('\n')[0]
user = line.partition(' user')[2].lstrip().partition(' ')[0].partition('\n')[0]
pw = line.partition(' password')[2].lstrip().partition(' ')[0].partition('\n')[0]
found = True
fid.close()
except OSError as e:
Expand Down

0 comments on commit bddca9a

Please sign in to comment.