Skip to content
Snippets Groups Projects
Commit 9e8783a0 authored by Martin Mareš's avatar Martin Mareš
Browse files

Řetězce není dobré porovnávat pomocí "is"

parent 86cdaa73
No related branches found
No related tags found
1 merge request!113Stav "opraveno"
......@@ -13,15 +13,15 @@ class PlaceLevel:
def name_genitive(self, m="", f="", n="") -> str:
w = {'m': m, 'f': f, 'n': n}[self.genus]
return (w + ' ' if w is not '' else '') + self.name_gen
return (w + ' ' if w != '' else '') + self.name_gen
def name_accusative(self, m="", f="", n="") -> str:
w = {'m': m, 'f': f, 'n': n}[self.genus]
return (w + ' ' if w is not '' else '') + self.name_acc
return (w + ' ' if w != '' else '') + self.name_acc
def name_locative(self, m="", f="", n="") -> str:
w = {'m': m, 'f': f, 'n': n}[self.genus]
return (w + ' ' if w is not '' else '') + self.name_loc
return (w + ' ' if w != '' else '') + self.name_loc
def in_name(self) -> str:
return self.in_prep + ' ' + self.name_loc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment