Skip to content

Commit

Permalink
more tf dict stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeAl authored Sep 5, 2017
1 parent 2fbe368 commit f295c2b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/shi7.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
"true": True,
"false": False,
"t": True,
"T": True,
"F": False,
"f": False,
"1": True,
"0": False
Expand Down Expand Up @@ -92,7 +90,7 @@ def run_command(cmd, shell=False):


def format_basename(filename):
if TRUE_FALSE_DICT[STRIP]:
if convert_t_or_f(STRIP):
parts = os.path.basename(filename).split('_')
if len(parts) == 1:
return re.sub('[^0-9a-zA-Z]+', '.', '.'.join(parts[0].split('.')[:-1]))
Expand Down

0 comments on commit f295c2b

Please sign in to comment.