Skip to content

Commit

Permalink
Cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmrlv committed May 31, 2015
1 parent 8be9492 commit 3efe4c3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions winrm/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@ def open_shell(self, i_stream='stdin', o_stream='stdout stderr',
env = shell.setdefault('rsp:Environment', {})
for key, value in env_vars.items():
env['rsp:Variable'] = {'@Name': key, '#text': value}
if sys.version[0] == '2':
rs = self.send_message(xmltodict.unparse(rq))
else:
rs = self.send_message(bytes(xmltodict.unparse(rq), encoding='ascii'))
rs = self.send_message(xmltodict.unparse(rq))
# rs = xmltodict.parse(rs)
# return rs['s:Envelope']['s:Body']['x:ResourceCreated']['a:ReferenceParameters']['w:SelectorSet']['w:Selector']['#text'] # NOQA
root = ET.fromstring(rs)
Expand Down

0 comments on commit 3efe4c3

Please sign in to comment.