Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

line is missing tab separator #225

Closed
@yarikoptic

Description

@yarikoptic

As I have whined about in#216, I have a few hits into

======================================================================ERROR: test_base (git.test.test_reflog.TestRefLog)----------------------------------------------------------------------Traceback (most recent call last):  File "/home/yoh/deb/gits/python-git/git/test/test_reflog.py", line 48, in test_base    reflog = RefLog.from_file(rlp_master_ro)  File "/home/yoh/deb/gits/python-git/git/refs/log.py", line 154, in from_file    return cls(filepath)  File "/home/yoh/deb/gits/python-git/git/refs/log.py", line 128, in __init__    self._read_from_file()  File "/home/yoh/deb/gits/python-git/git/refs/log.py", line 140, in _read_from_file    self._deserialize(fmap)  File "/home/yoh/deb/gits/python-git/git/refs/log.py", line 289, in _deserialize    self.extend(self.iter_entries(stream))  File "/home/yoh/deb/gits/python-git/git/refs/log.py", line 180, in iter_entries    yield new_entry(line.strip())  File "/home/yoh/deb/gits/python-git/git/refs/log.py", line 86, in from_line    raise ValueError("line is missing tab separator")ValueError: line is missing tab separator
(Pdb) print line0000000000000000000000000000000000000000 609237d8b5a47d5e68babea116712e5d41e8a949 Yaroslav Halchenko <debian@onerussian.com> 1418863256 +0000

in my case it looks like fields are separated by the space. Where tab should have been? ;)
I am also a bit confused with 2 ininfo, msg = line.split('\t', 2) since it would result in up to 3 elements in the list, thus might overfill info, msg pair

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp