Dirk Mueller 2017-10-01 12:43:53 +00:00 committed by Git OBS Bridge
parent 7b11fac9ff
commit 2b5cea76f9

View File

@ -19,13 +19,3 @@ index 8cb85b3..45ad404 100644
def unversioned(deps):
@@ -206,8 +205,7 @@ class SpecCheck(AbstractCheck.AbstractCheck):
if do_unicode:
line = unicode(line, "utf-8", "replace") # noqa false positive
- char = line.find(nbsp)
- if char != -1:
+ if nbsp in line:
printWarning(pkg, "non-break-space", "line %s, char %d" %
(pkg.current_linenum, char))