[pychess] push by gbtami - Python3 fixes on 2015-01-02 18:26 GMT

2 views
Skip to first unread message

pyc...@googlecode.com

unread,
Jan 2, 2015, 1:26:41 PM1/2/15
to pychess...@googlegroups.com
Revision: 57d60491179e
Branch: default
Author: gbtami
Date: Fri Jan 2 18:25:54 2015 UTC
Log: Python3 fixes
https://code.google.com/p/pychess/source/detail?r=57d60491179e

Modified:
/lib/pychess/ic/managers/ChatManager.py
/lib/pychess/widgets/ChatWindow.py

=======================================
--- /lib/pychess/ic/managers/ChatManager.py Tue Dec 30 16:58:57 2014 UTC
+++ /lib/pychess/ic/managers/ChatManager.py Fri Jan 2 18:25:54 2015 UTC
@@ -237,8 +237,8 @@

def convTime (self, h, m, s):
# Convert to timestamp
- tlist = [u for u in time.localtime()]
- tstamp = time.mktime(tlist[0:3]+[h, m, s, 0, 0, 0])
+ t1, t2, t3, t4, t5, t6, t7, t8, t9 = time.localtime()
+ tstamp = time.mktime((t1, t2, t3, h, m, s, 0, 0, 0))
# Difference to now in hours
dif = (tstamp-time.time())/60./60.
# As we know there is maximum 30 minutes in difference, we can
guess when the
=======================================
--- /lib/pychess/widgets/ChatWindow.py Wed Oct 1 14:59:40 2014 UTC
+++ /lib/pychess/widgets/ChatWindow.py Fri Jan 2 18:25:54 2015 UTC
@@ -501,7 +501,7 @@
if self.channels:
self._addChannels(self.channels)

- for player in self.connection.players.values():
+ for player in list(self.connection.players.values()):
if player.online:
id = self.compileId(player.name, TYPE_PERSONAL)
self.playersList.addRow(id, player.name +
player.display_titles(),
Reply all
Reply to author
Forward
0 new messages