1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Convert to six.py

This commit is contained in:
Shlomi Fish 2018-02-19 19:32:35 +02:00
parent 64720e8a97
commit b532c5bd22

View file

@ -21,9 +21,8 @@
#
# ---------------------------------------------------------------------------##
# imports
import sys
from six.moves import range
import time
# PySol imports
@ -31,10 +30,6 @@ from pysollib.mfxutil import format_time
from pysollib.gamedb import GI
from pysollib.mygettext import _
if sys.version_info > (3,):
xrange = range
# ************************************************************************
# *
# ************************************************************************
@ -317,7 +312,7 @@ class ProgressionFormatter:
t[0] -= 1
lt = self.norm_time(t)
marks = [lt[:3], tt[:3]]
for i in xrange(5):
for i in range(5):
tt[1] -= 2
marks.append(self.norm_time(tt)[:3])
delta = 7
@ -355,7 +350,7 @@ class ProgressionFormatter:
played = 0
won = 0
text = None
for i in xrange(delta):
for i in range(delta):
if marks:
if ct[:3] in marks:
text = time.strftime(format, ct)