Merge lp://staging/~pr0gg3d/loggerhead/annotate_zero_size_820065 into lp://staging/loggerhead
Proposed by
Francesco Del Degan
Status: | Superseded |
---|---|
Proposed branch: | lp://staging/~pr0gg3d/loggerhead/annotate_zero_size_820065 |
Merge into: | lp://staging/loggerhead |
Diff against target: |
35 lines (+15/-0) 2 files modified
loggerhead/controllers/annotate_ui.py (+4/-0) loggerhead/tests/test_controllers.py (+11/-0) |
To merge this branch: | bzr merge lp://staging/~pr0gg3d/loggerhead/annotate_zero_size_820065 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Loggerhead Reviewers | Pending | ||
Review via email: mp+70789@code.staging.launchpad.net |
This proposal has been superseded by a proposal from 2011-08-09.
Description of the change
This fixes #820065
The bug occurs when trying to annotate a zero-sized file.
The last_lineno is None, and an exception is raised at the end of method.
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8/8/2011 11:09 PM, Francesco Del Degan wrote: reviewers) /bugs.launchpad .net/loggerhead /+bug/820065 /code.launchpad .net/~pr0gg3d/ loggerhead/ annotate_ zero_size_ 820065/ +merge/ 70789
> Francesco Del Degan has proposed merging
> lp:~pr0gg3d/loggerhead/annotate_zero_size_820065 into lp:loggerhead.
>
> Requested reviews: Loggerhead Reviewers (loggerhead-
> Related bugs: Bug #820065 in loggerhead: "TypeError: unsupported
> operand type(s) for -: 'int' and 'NoneType'"
> https:/
>
> For more details, see:
> https:/
>
> This fixes #820065
>
> The bug occurs when trying to annotate a zero-sized file. The
> last_lineno is None, and an exception is raised at the end of
> method.
>
>
Good change, but again, it would be nice to have a simple test for this.
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
BBXsACgkQJdeBCY SNAAPa1gCgsUeNv uKXWegQldo8I3bN UGGD 99xuxXSZRboFZ0r WJA
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk5
iz8AoMPb5kLkd+
=wL8n
-----END PGP SIGNATURE-----