git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Notice: curl_setopt(): CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value...
[plcapi.git]
/
PLC
/
Shell.py
diff --git
a/PLC/Shell.py
b/PLC/Shell.py
index
4118401
..
25bb0d5
100644
(file)
--- a/
PLC/Shell.py
+++ b/
PLC/Shell.py
@@
-146,7
+146,8
@@
class Shell:
raise Exception("Must specify session")
if os.path.exists(session):
- session = file(session).read()
+ with open(session) as feed:
+ session = feed.read()
self.auth = {'AuthMethod': "session", 'session': session}
else: