Commit 5be541db authored by liaoqiang's avatar liaoqiang

remove the loop and undo the comment changes

parent df956f06
// Package gopickle is a library for decoding Python's pickle format. // Package ogórek is a library for decoding Python's pickle format.
// //
// gopickle is Polish for "pickle". // ogórek is Polish for "pickle".
package ogórek package ogórek
import ( import (
...@@ -247,9 +247,7 @@ func (d *Decoder) readLine() ([]byte, error) { ...@@ -247,9 +247,7 @@ func (d *Decoder) readLine() ([]byte, error) {
return line, err return line, err
} }
has_more = is_prefix has_more = is_prefix
for i := 0; i < len(read_data); i++ { line = append(line, read_data...)
line = append(line, read_data[i])
}
} }
return line, nil return line, nil
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment