1. 13 May, 2019 2 commits
  2. 10 May, 2019 4 commits
  3. 09 May, 2019 6 commits
  4. 08 May, 2019 9 commits
  5. 07 May, 2019 7 commits
  6. 06 May, 2019 4 commits
  7. 03 May, 2019 6 commits
  8. 02 May, 2019 2 commits
    • Bruce Dawson's avatar
      Fix multiple confusingly escaped regex strings · 9c062012
      Bruce Dawson authored
      Python (prior to 3.8) treats meaningless string escape sequences as if
      they were a slash followed by the character. That is, '\w' == '\\w'.
      Python 3.8 rejects this, and it's confusing. This change fixes seven of these
      regex strings found in depot_tools (through a regex search, natch). Most of
      the fixes don't actually change the value of the strings, and this was
      manually verified:
      
      >>> '(/c(/.*/\+)?)?/(\d+)(/(\d+)?/?)?$' == r'(/c(/.*/\+)?)?/(\d+)(/(\d+)?/?)?$'
      True
      >>> '#\s*OWNERS_STATUS\s+=\s+(.+)$' == r'#\s*OWNERS_STATUS\s+=\s+(.+)$'
      True
      >>> 'COM\d' == r'COM\d'
      True
      >>> '^\s+Change-Id:\s*(\S+)$' == r'^\s+Change-Id:\s*(\S+)$'
      True
      >>> 'ETag:\s+([a-z0-9]{32})' == r'ETag:\s+([a-z0-9]{32})'
      True
      
      Two exceptions were the regex expressions in filter_demo_output.py and scm.py.
      These were turned into raw strings despite this changing the value of the
      string passed to re. This works because re supports the \x, \d, \w, \t, and
      other escape sequences needed to make this work.
      
      TL;DR - use raw strings for regex to avoid melting your brain. If bulk changing
      regex strings to raw watch out for double-slashes.
      
      Bug: 958138
      Change-Id: Ic45264cfc63e8bae9cfcffe2cd88a57c2d3dcdae
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1590534
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
      9c062012
    • recipe-roller's avatar
      Roll recipe dependencies (trivial). · 0647cd50
      recipe-roller authored
      This is an automated CL created by the recipe roller. This CL rolls recipe
      changes from upstream projects (e.g. depot_tools) into downstream projects
      (e.g. tools/build).
      
      
      More info is at https://goo.gl/zkKdpD. Use https://goo.gl/noib3a to file a bug.
      recipe_engine:
        https://crrev.com/0589a429cf3c164004dae4ced4c75784a50afd81 Only delete the specified element, not all of them (sergiyb@chromium.org)
      
      
      TBR=iannucci@chromium.org
      
      Recipe-Tryjob-Bypass-Reason: Autoroller
      Bugdroid-Send-Email: False
      Change-Id: I9620a32421f753633b664b9e9747dc4a5975477f
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1592836Reviewed-by: 's avatarRecipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
      Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
      0647cd50