removed unused cmd_record
This commit is contained in:
1 parent
441abc3f55
commit
630b3b2418
2 files changed
-11
No files matched your search
@@ -23,8 +23,6 @@ def process_command_stream(streams: List[PDFStream], font_cache: dict = None, st
|
||||
if font_cache is None:
|
||||
font_cache = {}
|
||||
parser = PDFContentParser(streams)
|
||||
# from .cmd_record import CmdRecord
|
||||
# history = CmdRecord()
|
||||
for obj in parser:
|
||||
if isinstance(obj, PSKeyword):
|
||||
name = keyword_name(obj)
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
|
||||
class CmdRecord:
|
||||
def __init__(self, file_name: str = "./cmd_record"):
|
||||
self.file = open(file_name, 'w')
|
||||
self.file.write("c_name,func_name,args\n")
|
||||
def write(self, c_name, func_name, args):
|
||||
self.file.write(f"{c_name},{func_name},{args}\n")
|
||||
def close(self):
|
||||
self.file.close()
|
||||
Reference in new issue
Block a user