Make use of FileDiff.is_new.

Review Request #5902 — Created May 29, 2014 and submitted

Information

Review Board
master
6aac8a6...

Reviewers

We have a property that does the comparison against PRE_CREATION for us, so we
might as well use it. This is just a simple cleanup.

  • Ran unit tests.
  • Checked diffs for new files.
Description From Last Updated

list comprehension redefines 'file_attachment' from line 570

reviewbotreviewbot
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        reviewboard/reviews/views.py
        reviewboard/diffviewer/diffutils.py
      Ignored Files:
        reviewboard/templates/reviews/diff_comment_fragment.html
    
    
  2. 
      
reviewbot
  1. This is a review from Review Bot.
      Tool: Pyflakes
      Processed Files:
        reviewboard/reviews/views.py
        reviewboard/diffviewer/diffutils.py
      Ignored Files:
        reviewboard/templates/reviews/diff_comment_fragment.html
    
    
  2. reviewboard/reviews/views.py (Diff revision 1)
     
     
    Show all issues
     list comprehension redefines 'file_attachment' from line 570
    
  3. 
      
chipx86
  1. Ship It!

  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (a1f6348)