Cleaned up the use of calling lib.Utils.Utils
This commit is contained in:
parent
fdd3e958dc
commit
2ef1620e8e
@ -1,4 +1,4 @@
|
|||||||
from lib import Utils
|
from lib.Utils import Utils
|
||||||
import os
|
import os
|
||||||
import sh
|
import sh
|
||||||
import sys
|
import sys
|
||||||
@ -27,7 +27,7 @@ class FormulaRepo():
|
|||||||
branch_lines = self.repo.branch()
|
branch_lines = self.repo.branch()
|
||||||
# loop through the branches
|
# loop through the branches
|
||||||
for line in branch_lines:
|
for line in branch_lines:
|
||||||
bits = Utils.Utils.remove_ansi_from_list(line.split())
|
bits = Utils.remove_ansi_from_list(line.split())
|
||||||
# check if the branch was marked as current
|
# check if the branch was marked as current
|
||||||
if bits[0] == '*':
|
if bits[0] == '*':
|
||||||
branches.append(bits[1])
|
branches.append(bits[1])
|
||||||
@ -42,7 +42,7 @@ class FormulaRepo():
|
|||||||
branches = self.repo.branch()
|
branches = self.repo.branch()
|
||||||
# loop through the branches
|
# loop through the branches
|
||||||
for line in branches:
|
for line in branches:
|
||||||
bits = Utils.Utils.remove_ansi_from_list(line.split())
|
bits = Utils.remove_ansi_from_list(line.split())
|
||||||
# check for if a branch is listed as current
|
# check for if a branch is listed as current
|
||||||
if bits[0] == '*':
|
if bits[0] == '*':
|
||||||
# return the branch name
|
# return the branch name
|
||||||
|
Loading…
Reference in New Issue
Block a user