Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoWilken committed Apr 1, 2022
1 parent a9eb661 commit 21a75c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions alibuild_helpers/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# Keep the linter happy
if sys.version_info[0] >= 3:
basestring = str
unicode = None


def is_string(s):
Expand All @@ -36,6 +37,7 @@ def decode_with_fallback(data):
return unicode(data, "utf-8") # utf-8 is a safe assumption
elif not isinstance(data, unicode):
return unicode(str(data))
return data


def getoutput(command):
Expand Down
4 changes: 0 additions & 4 deletions alibuild_helpers/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ class SpecError(Exception):

asList = lambda x : x if type(x) == list else [x]

# Keep the linter happy
if sys.version_info[0] >= 3:
unicode = None

def star():
return re.sub("build.*$", "", basename(sys.argv[0]).lower())

Expand Down

0 comments on commit 21a75c8

Please sign in to comment.