convert xml.dom.minidom.Attr value to int in reviewboard.reviews.markdown_utils:iter_markdown_lines

Review Request #6764 — Created Jan. 12, 2015 and discarded

Information

Review Board
master

Reviewers

fixes issue 3715

I wrote unit tests and ran python reviewboard/manage.py test:

<snip>
When an ordered list does not have a start attr, do not treat it as a xml.dom.minidom.Attr ... ok
Raise an exception for ordered lists with non-int values for their start attribute ... ok
When reading the start attr for lists, convert the value to an int ... ok
Description From Last Updated

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (104 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (96 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (89 > 79 characters)

reviewbotreviewbot

local variable 'markdown_html' is assigned to but never used

reviewbotreviewbot

undefined name 'markdown'

reviewbotreviewbot

local variable 'markdown_html' is assigned to but never used

reviewbotreviewbot

undefined name 'markdown'

reviewbotreviewbot

local variable 'markdown_html' is assigned to but never used

reviewbotreviewbot

undefined name 'markdown'

reviewbotreviewbot

Col: 80 E501 line too long (82 > 79 characters)

reviewbotreviewbot
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/markdown_utils.py
        reviewboard/reviews/tests.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/markdown_utils.py
        reviewboard/reviews/tests.py
    
    
  2. reviewboard/reviews/tests.py (Diff revision 1)
     
     
    Show all issues
    Col: 80
     E501 line too long (80 > 79 characters)
    
  3. reviewboard/reviews/tests.py (Diff revision 1)
     
     
    Show all issues
    Col: 80
     E501 line too long (104 > 79 characters)
    
  4. reviewboard/reviews/tests.py (Diff revision 1)
     
     
    Show all issues
    Col: 80
     E501 line too long (96 > 79 characters)
    
  5. reviewboard/reviews/tests.py (Diff revision 1)
     
     
    Show all issues
    Col: 80
     E501 line too long (89 > 79 characters)
    
  6. 
      
DG
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/markdown_utils.py
        reviewboard/reviews/tests.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/markdown_utils.py
        reviewboard/reviews/tests.py
    
    
  2. 
      
DG
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/markdown_utils.py
        reviewboard/reviews/tests.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/markdown_utils.py
        reviewboard/reviews/tests.py
    
    
  2. reviewboard/reviews/tests.py (Diff revision 3)
     
     
    Show all issues
     local variable 'markdown_html' is assigned to but never used
    
  3. reviewboard/reviews/tests.py (Diff revision 3)
     
     
    Show all issues
     undefined name 'markdown'
    
  4. reviewboard/reviews/tests.py (Diff revision 3)
     
     
    Show all issues
     local variable 'markdown_html' is assigned to but never used
    
  5. reviewboard/reviews/tests.py (Diff revision 3)
     
     
    Show all issues
     undefined name 'markdown'
    
  6. reviewboard/reviews/tests.py (Diff revision 3)
     
     
    Show all issues
     local variable 'markdown_html' is assigned to but never used
    
  7. reviewboard/reviews/tests.py (Diff revision 3)
     
     
    Show all issues
     undefined name 'markdown'
    
  8. 
      
DG
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/markdown_utils.py
        reviewboard/reviews/tests.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/markdown_utils.py
        reviewboard/reviews/tests.py
    
    
  2. reviewboard/reviews/tests.py (Diff revision 4)
     
     
    Show all issues
    Col: 80
     E501 line too long (82 > 79 characters)
    
  3. 
      
DG
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/markdown_utils.py
        reviewboard/reviews/tests.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/markdown_utils.py
        reviewboard/reviews/tests.py
    
    
  2. 
      
david
  1. Thanks for the change. I'd actually just finished a very similar change, and landed that one since I'm more familiar with it.

  2. 
      
DG
Review request changed
Status:
Discarded