Skip to content

Commit

Permalink
improve class name
Browse files Browse the repository at this point in the history
  • Loading branch information
ppigazzini committed Apr 25, 2024
1 parent 48c92d3 commit a686aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/fishtest/rundb.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_port():
return -6


class GeneratorReader:
class GeneratorToFileLikeWrapper:
def __init__(self, generator):
self.generator = generator
self.buffer = b""
Expand Down Expand Up @@ -291,7 +291,7 @@ def pgn_generator():
for pgn in pgns:
yield pgn["pgn_zip"]

return GeneratorReader(pgn_generator())
return GeneratorToFileLikeWrapper(pgn_generator())
return None

def write_nn(self, net):
Expand Down

0 comments on commit a686aab

Please sign in to comment.