Fix: syntax error discovered by pytocs (#318)

* Fix: Non-terminated string constant

`visgraph/renderers/svgrend.py` is missing a terminating apostrophe on line 41.

* Incorrect extra closing parenthesis removed

* Possible missing comment character '#'

Co-authored-by: atlas0fd00m <atlas@r4780y.com>
This commit is contained in:
John Källén
2020-09-29 07:19:01 +02:00
committed by GitHub
parent 3ac90dcbb5
commit 8a28f46f76
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -222,4 +222,4 @@ class HookBpTest6(v_testmods.VtracePythonTest):
# TODO: I don't think these are run....
if __name__ == '__main__':
import sys
sys.exit(31) TODO: tests for something NOT in impapi
sys.exit(31) # TODO: tests for something NOT in impapi
+1 -1
View File
@@ -38,7 +38,7 @@ class SvgGraphRenderer(vg_render.GraphRenderer):
def endRender(self):
# Actually write out the file.
with open(self.svgfile, 'wb) as f:
with open(self.svgfile, 'wb') as f:
f.write('<?xml version="1.0" standalone="no"?>\n')
#f.write('<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >\n')
xsize = self._vg_canvas_width
+1 -1
View File
@@ -33,7 +33,7 @@ def _loadMacho(vw, filebytes, filename=None, baseaddr=None):
# grab md5 and sha256 hashes before we modify the bytes
fhash = viv_parsers.md5Bytes(filebytes)
sha256 = v_parsers.sha256Bytes(filebytes))
sha256 = v_parsers.sha256Bytes(filebytes)
# Check for the FAT binary magic...
if binascii.hexlify(filebytes[:4]) in ('cafebabe', 'bebafeca'):