software = None
else:
logger.debug("software='%s' is being cleaned up further ...")
- software = software.rstrip("!")
+ software = software.rstrip("!").strip()
logger.debug("software[%s]='%s' - EXIT!", type(software), software)
return software
logger.debug("software[%s]='%s'", type(software), software)
if " - " in software:
- software = strip_until(software, " - ")
+ logger.debug("Stripping ' - ' of from software='%s' ...", software)
+ software = strip_until(software, " - ").strip()
logger.debug("software='%s' - EXIT!", software)
return software
logger.debug("software='%s'", software)
if " - " in software:
- software = strip_until(software, " - ")
+ logger.debug("Stripping ' - ' of from software='%s' ...", software)
+ software = strip_until(software, " - ").strip()
logger.debug("software='%s' - EXIT!", software)
return software
return software
# Next, strip until part
- end = software.find(until)
+ end = software.strip().find(until)
logger.debug("end[%s]=%d", type(end), end)
if end > 0:
logger.debug("software='%s' has 'powered by' in it", software)
software = version.remove(software_helper.strip_powered_by(software))
+ software = software.strip()
+
logger.debug("software='%s' - EXIT!", software)
return software