Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Issue 1644543005: inject_misc_tags no longer fails if document has no head. Resolves #16. (Closed)

Created:
4 years, 11 months ago by Matthew Alger
Modified:
4 years, 10 months ago
Reviewers:
Matt Giuca
CC:
raymes
Base URL:
git@github.com:chromium/caterpillar.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

inject_misc_tags no longer fails if document has no head. Resolves #16. https://github.com/chromium/caterpillar/issues/16 R=mgiuca@chromium.org Committed: 5884063f4dc2a0943ab8f8f227a7c799f0dc0e36

Patch Set 1 #

Total comments: 2

Patch Set 2 : Merge #

Patch Set 3 : Response to CR + tests #

Total comments: 7

Patch Set 4 : Response to CR #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -3 lines) Patch
M src/caterpillar.py View 1 2 3 1 chunk +11 lines, -3 lines 0 comments Download
M src/caterpillar_test.py View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Matthew Alger
4 years, 11 months ago (2016-01-28 04:26:56 UTC) #2
Matt Giuca
https://codereview.chromium.org/1644543005/diff/1/src/caterpillar.py File src/caterpillar.py (right): https://codereview.chromium.org/1644543005/diff/1/src/caterpillar.py#newcode283 src/caterpillar.py:283: target_tag = soup.head if soup.head else soup Maybe this ...
4 years, 10 months ago (2016-01-28 06:56:25 UTC) #3
Matthew Alger
I've added some tests for this bug, since the tests CL has now landed. https://codereview.chromium.org/1644543005/diff/1/src/caterpillar.py ...
4 years, 10 months ago (2016-01-28 23:08:44 UTC) #4
Matt Giuca
https://codereview.chromium.org/1644543005/diff/40001/src/caterpillar.py File src/caterpillar.py (right): https://codereview.chromium.org/1644543005/diff/40001/src/caterpillar.py#newcode289 src/caterpillar.py:289: if not soup.head: head = soup.head if not head: ...
4 years, 10 months ago (2016-01-29 02:19:26 UTC) #5
Matthew Alger
https://codereview.chromium.org/1644543005/diff/40001/src/caterpillar.py File src/caterpillar.py (right): https://codereview.chromium.org/1644543005/diff/40001/src/caterpillar.py#newcode289 src/caterpillar.py:289: if not soup.head: On 2016/01/29 02:19:26, Matt Giuca wrote: ...
4 years, 10 months ago (2016-01-29 02:41:51 UTC) #6
Matt Giuca
https://codereview.chromium.org/1644543005/diff/40001/src/caterpillar.py File src/caterpillar.py (right): https://codereview.chromium.org/1644543005/diff/40001/src/caterpillar.py#newcode289 src/caterpillar.py:289: if not soup.head: On 2016/01/29 02:41:51, Matthew Alger wrote: ...
4 years, 10 months ago (2016-01-29 03:04:13 UTC) #7
Matt Giuca
lgtm
4 years, 10 months ago (2016-01-29 03:04:18 UTC) #8
Matthew Alger
4 years, 10 months ago (2016-01-29 03:18:57 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
5884063f4dc2a0943ab8f8f227a7c799f0dc0e36 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698