Skip to content

Commit 3726302

Browse files
committed
Remove debug
1 parent 2008d78 commit 3726302

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

marshal/marshal.go

+17-17
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const (
5050
// Reads an object from the input
5151
func ReadObject(r io.Reader) (obj py.Object, err error) {
5252
var code byte
53-
defer func() { fmt.Printf("ReadObject(%c) returning %#v with error %v\n", code, obj, err) }()
53+
// defer func() { fmt.Printf("ReadObject(%c) returning %#v with error %v\n", code, obj, err) }()
5454
err = binary.Read(r, binary.LittleEndian, &code)
5555
if err != nil {
5656
return
@@ -315,21 +315,21 @@ func ReadObject(r io.Reader) (obj py.Object, err error) {
315315
return
316316
}
317317

318-
fmt.Printf("argcount = %v\n", argcount)
319-
fmt.Printf("kwonlyargcount = %v\n", kwonlyargcount)
320-
fmt.Printf("nlocals = %v\n", nlocals)
321-
fmt.Printf("stacksize = %v\n", stacksize)
322-
fmt.Printf("flags = %v\n", flags)
323-
fmt.Printf("code = %x\n", code)
324-
fmt.Printf("consts = %v\n", consts)
325-
fmt.Printf("names = %v\n", names)
326-
fmt.Printf("varnames = %v\n", varnames)
327-
fmt.Printf("freevars = %v\n", freevars)
328-
fmt.Printf("cellvars = %v\n", cellvars)
329-
fmt.Printf("filename = %v\n", filename)
330-
fmt.Printf("name = %v\n", name)
331-
fmt.Printf("firstlineno = %v\n", firstlineno)
332-
fmt.Printf("lnotab = %x\n", lnotab)
318+
// fmt.Printf("argcount = %v\n", argcount)
319+
// fmt.Printf("kwonlyargcount = %v\n", kwonlyargcount)
320+
// fmt.Printf("nlocals = %v\n", nlocals)
321+
// fmt.Printf("stacksize = %v\n", stacksize)
322+
// fmt.Printf("flags = %v\n", flags)
323+
// fmt.Printf("code = %x\n", code)
324+
// fmt.Printf("consts = %v\n", consts)
325+
// fmt.Printf("names = %v\n", names)
326+
// fmt.Printf("varnames = %v\n", varnames)
327+
// fmt.Printf("freevars = %v\n", freevars)
328+
// fmt.Printf("cellvars = %v\n", cellvars)
329+
// fmt.Printf("filename = %v\n", filename)
330+
// fmt.Printf("name = %v\n", name)
331+
// fmt.Printf("firstlineno = %v\n", firstlineno)
332+
// fmt.Printf("lnotab = %x\n", lnotab)
333333

334334
v := py.NewCode(
335335
argcount, kwonlyargcount,
@@ -362,6 +362,6 @@ func ReadPyc(r io.Reader) (obj py.Object, err error) {
362362
if header.Magic>>16 != 0x0a0d {
363363
return nil, errors.New("Bad magic in .pyc file")
364364
}
365-
fmt.Printf("header = %v\n", header)
365+
// fmt.Printf("header = %v\n", header)
366366
return ReadObject(r)
367367
}

py/string.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package py
44

55
import (
6-
"fmt"
6+
// "fmt"
77
)
88

99
type String string
@@ -17,6 +17,6 @@ func (s String) Type() *Type {
1717

1818
// Intern s possibly returning a reference to an already interned string
1919
func (s String) Intern() String {
20-
fmt.Printf("FIXME interning %q\n", s)
20+
// fmt.Printf("FIXME interning %q\n", s)
2121
return s
2222
}

0 commit comments

Comments
 (0)