refactor(whitespace): nix vim tabs

This commit is contained in:
Sabe Jones 2017-01-19 17:30:44 +00:00
parent 77b4639205
commit 5ba220a9d2

View file

@ -12,7 +12,7 @@ try:
except ImportError: except ImportError:
def titlecase(s): def titlecase(s):
s = s.title() s = s.title()
smallwords = [ smallwords = [
"'S", "'S",
' A ', ' A ',
' For ', ' For ',
@ -22,7 +22,7 @@ except ImportError:
' To ', ' To ',
] ]
for word in smallwords: for word in smallwords:
s = s.replace(word, word.lower()) s = s.replace(word, word.lower())
return s return s
try: try:
@ -692,7 +692,7 @@ class Card:
if self.__dict__[field_subtypes]: if self.__dict__[field_subtypes]:
outstr += (' ' + utils.dash_marker) outstr += (' ' + utils.dash_marker)
for subtype in self.__dict__[field_subtypes]: for subtype in self.__dict__[field_subtypes]:
outstr += ' ' + titlecase(subtype) outstr += ' ' + titlecase(subtype)
if self.__dict__[field_pt]: if self.__dict__[field_pt]:
outstr += ' (' + utils.from_unary(self.__dict__[field_pt]) + ')' outstr += ' (' + utils.from_unary(self.__dict__[field_pt]) + ')'