gracefully handle no-match in p4 info regex

Review Request #3902 — Created Feb. 21, 2013 and submitted

Information

RBTools
master

Reviewers

If the regular expression doesn't parse the string that p4 info returns, calling group will cause a traceback.  This came up where p4 info returned an unexpected string.
Manual testing with the p4 binary that returned a non-standard string.  I'm on OSX and I'm not going to spend the non-trivial time to get unit tests running.  No hard feelings if you reject this patch on that basis.
Description From Last Updated

Col: 1 E101 indentation contains mixed spaces and tabs

reviewbotreviewbot

Col: 1 W191 indentation contains tabs

reviewbotreviewbot

Col: 1 W191 indentation contains tabs

reviewbotreviewbot

Col: 1 E101 indentation contains mixed spaces and tabs

reviewbotreviewbot
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        rbtools/clients/perforce.py
      Ignored Files:
    
    
  2. rbtools/clients/perforce.py (Diff revision 1)
     
     
    Show all issues
    Col: 1
     E101 indentation contains mixed spaces and tabs
    
  3. rbtools/clients/perforce.py (Diff revision 1)
     
     
    Show all issues
    Col: 1
     W191 indentation contains tabs
    
  4. 
      
DE
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        rbtools/clients/perforce.py
      Ignored Files:
    
    
  2. rbtools/clients/perforce.py (Diff revision 2)
     
     
    Show all issues
    Col: 1
     W191 indentation contains tabs
    
  3. rbtools/clients/perforce.py (Diff revision 2)
     
     
    Show all issues
    Col: 1
     E101 indentation contains mixed spaces and tabs
    
  4. 
      
DE
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        rbtools/clients/perforce.py
      Ignored Files:
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
DE
Review request changed
Status:
Completed
Change Summary:
Pushed to master (124cb39). Thanks!