Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 596b285c authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix minor typos

parent ce09988f
......@@ -491,7 +491,7 @@ class Game:
return int(self.wantedGame.split('/')[0])
def _setHandSeed(self): # TODO: move this to PlayingGame
"""set seed to a reproducable value, independent of what happend
"""set seed to a reproducible value, independent of what happened
in previous hands/rounds.
This makes it easier to reproduce game situations
in later hands without having to exactly replay all previous hands"""
......
......@@ -95,7 +95,7 @@ class ListComboBox(QComboBox):
return -1
def names(self):
"""a list wiith all item names"""
"""a list with all item names"""
return list([x.name for x in self.items])
@property
......
......@@ -400,7 +400,7 @@ class Hand(StrMixin):
self.__applyRules()
def chancesToWin(self):
"""count the physical tiles that make us win and still seem availabe"""
"""count the physical tiles that make us win and still seem available"""
assert self.lenOffset == 0
result = []
for completedHand in self.callingHands:
......
......@@ -779,7 +779,7 @@ class HumanClient(Client):
Information(i18n(message, *args)).addCallback(yes)
def remote_serverDisconnects(self, result=None):
"""we logged out or or lost connection to the server.
"""we logged out or lost connection to the server.
Remove visual traces depending on that connection."""
if Debug.connections and result:
logDebug(
......
......@@ -1288,7 +1288,7 @@ class KConfigDialog(KDialog):
return cls.dialog
def showEvent(self, dummyEvent):
"""if the settings dialog shows, rememeber current values
"""if the settings dialog shows, remember current values
and show them in the widgets"""
self.orgPref = self.preferences.as_dict()
self.updateWidgets()
......
......@@ -438,7 +438,7 @@ class UIWall(Wall):
self.__moveDividedTile(self.kongBox[-2], first)
def divide(self):
"""divides a wall, building a living and and a dead end"""
"""divides a wall, building a living end and a dead end"""
with AnimationSpeed():
Wall.divide(self)
for uiTile in self.tiles:
......
......@@ -111,12 +111,12 @@ def uniqueList(seq):
def _getr(slist, olist, seen):
"""Recursively expand slist's objects into olist, using seen to track
already processed objects."""
for elment in slist:
if id(elment) in seen:
for element in slist:
if id(element) in seen:
continue
seen[id(elment)] = None
olist.append(elment)
tlist = gc.get_referents(elment)
seen[id(element)] = None
olist.append(element)
tlist = gc.get_referents(element)
if tlist:
_getr(tlist, olist, seen)
......
......@@ -128,7 +128,7 @@ class Wall(StrMixin):
"""virtual: hide all four walls and their decorators"""
def divide(self):
"""divides a wall, building a living and and a dead end"""
"""divides a wall, building a living end and a dead end"""
# neutralise the different directions of winds and removal of wall
# tiles
assert self.game.divideAt is not None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment