Skip to content

Commit

Permalink
Refactor _get_cpu_flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dkubek committed Mar 15, 2023
1 parent 71e0647 commit c973cf4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def _get_lscpu_output():


def _get_cpu_flags(lscpu):
flags = lscpu.get('Flags')
return [] if flags is None else flags.split()
flags = lscpu.get('Flags', '')
return flags.split()


def _get_cpu_entries_for(arch_prefix):
Expand Down

0 comments on commit c973cf4

Please sign in to comment.