Reformat with black

This commit is contained in:
Dpeta 2022-11-17 08:44:23 +01:00
parent c77f585e3a
commit 2ff1a87901
2 changed files with 4 additions and 4 deletions

View file

@ -144,7 +144,7 @@ class pesterQuirks(object):
def apply(self, lexed, first=False, last=False): def apply(self, lexed, first=False, last=False):
prefix = [q for q in self.quirklist if q.type == "prefix"] prefix = [q for q in self.quirklist if q.type == "prefix"]
#suffix = [q for q in self.quirklist if q.type == "suffix"] # suffix = [q for q in self.quirklist if q.type == "suffix"]
newlist = [] newlist = []
for (i, o) in enumerate(lexed): for (i, o) in enumerate(lexed):

View file

@ -160,10 +160,10 @@ class TimeTracker(list):
def addRecord(self, timed): def addRecord(self, timed):
try: try:
#(temporal, pcf, when) = pcfGrammar(timed - timedelta(0)) # (temporal, pcf, when) = pcfGrammar(timed - timedelta(0))
pcf = pcfGrammar(timed - timedelta(0))[1] pcf = pcfGrammar(timed - timedelta(0))[1]
except TypeError: except TypeError:
#(temporal, pcf, when) = pcfGrammar(mysteryTime()) # (temporal, pcf, when) = pcfGrammar(mysteryTime())
pcf = pcfGrammar(mysteryTime())[1] pcf = pcfGrammar(mysteryTime())[1]
if pcf == "C" or pcf == "?": if pcf == "C" or pcf == "?":
return return
@ -173,7 +173,7 @@ class TimeTracker(list):
def getRecord(self, timed): def getRecord(self, timed):
try: try:
#(temporal, pcf, when) = pcfGrammar(timed - timedelta(0)) # (temporal, pcf, when) = pcfGrammar(timed - timedelta(0))
pcf = pcfGrammar(timed - timedelta(0))[1] pcf = pcfGrammar(timed - timedelta(0))[1]
except TypeError: except TypeError:
pcf = pcfGrammar(mysteryTime())[1] pcf = pcfGrammar(mysteryTime())[1]