Changeset 52d779e
- Timestamp:
- 2007-09-04T19:29:42Z (17 years ago)
- Branches:
- master
- Children:
- f080961
- Parents:
- 67496f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skyped.py
r67496f7 r52d779e 101 101 msg_text = [msg_text] 102 102 for i in msg_text: 103 dprint('<< ' + i) 103 e = i.encode(locale.getdefaultlocale()[1]) 104 dprint('<< ' + e) 104 105 if conn: 105 conn.send( i+ "\n")106 conn.send(e + "\n") 106 107 107 108 def send(self, msg_text): 108 109 if not len(msg_text): 109 110 return 110 dprint('>> ' + msg_text) 111 e = msg_text.decode(locale.getdefaultlocale()[1]) 112 dprint('>> ' + e) 111 113 try: 112 self.skype._DoCommand( msg_text)114 self.skype._DoCommand(e) 113 115 except Skype4Py.ISkypeError: 114 116 pass 115 117 except Skype4Py.errors.ISkypeAPIError, s: 116 dprint("Warning, seding '%s' failed (%s)." % ( msg_text, s))118 dprint("Warning, seding '%s' failed (%s)." % (e, s)) 117 119 118 120 class Options:
Note: See TracChangeset
for help on using the changeset viewer.