mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
PEP8 cleanups
This commit is contained in:
parent
0e34c8c4b3
commit
7bf12460be
2 changed files with 4 additions and 4 deletions
|
@ -58,15 +58,15 @@ class NameParser(object):
|
||||||
def clean_series_name(self, series_name):
|
def clean_series_name(self, series_name):
|
||||||
"""Cleans up series name by removing any . and _
|
"""Cleans up series name by removing any . and _
|
||||||
characters, along with any trailing hyphens.
|
characters, along with any trailing hyphens.
|
||||||
|
|
||||||
Is basically equivalent to replacing all _ and . with a
|
Is basically equivalent to replacing all _ and . with a
|
||||||
space, but handles decimal numbers in string, for example:
|
space, but handles decimal numbers in string, for example:
|
||||||
|
|
||||||
>>> cleanRegexedSeriesName("an.example.1.0.test")
|
>>> cleanRegexedSeriesName("an.example.1.0.test")
|
||||||
'an example 1.0 test'
|
'an example 1.0 test'
|
||||||
>>> cleanRegexedSeriesName("an_example_1.0_test")
|
>>> cleanRegexedSeriesName("an_example_1.0_test")
|
||||||
'an example 1.0 test'
|
'an example 1.0 test'
|
||||||
|
|
||||||
Stolen from dbr's tvnamer
|
Stolen from dbr's tvnamer
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -2263,4 +2263,4 @@ class TVEpisode(object):
|
||||||
with self.lock:
|
with self.lock:
|
||||||
self.saveToDB()
|
self.saveToDB()
|
||||||
for relEp in self.relatedEps:
|
for relEp in self.relatedEps:
|
||||||
relEp.saveToDB()
|
relEp.saveToDB()
|
||||||
|
|
Loading…
Reference in a new issue