[all] small fixed picked up by pytest
- unicode stuff - make all regexps regex strings
This commit is contained in:
parent
9cadcee844
commit
5e40dfb28a
9 changed files with 12 additions and 10 deletions
|
@ -74,7 +74,7 @@ class Module(core.module.Module):
|
|||
return util.format.astemperature(self.__tempmax, self.__unit)
|
||||
|
||||
def city(self):
|
||||
city = re.sub("[_-]", " ", self.__city)
|
||||
city = re.sub(r"[_-]", " ", self.__city)
|
||||
return "{} ".format(city)
|
||||
|
||||
def output(self, widget):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue