Skip to content

Commit

Permalink
Merge pull request #223 from jwilk-forks/python3.6
Browse files Browse the repository at this point in the history
Use triple-quoted raw strings in regexp constants
  • Loading branch information
joeyespo authored Sep 24, 2017
2 parents 6ca2fd3 + c253750 commit 41b2509
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions grip/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
# Style parsing
STYLE_URLS_SOURCE = 'https://github.com/joeyespo/grip'
STYLE_URLS_RE = (
'<link.+href=[\'"]?([^\'" >]+)[\'"]?.+media=[\'"]?(?:screen|all)[\'"]?.'
'+rel=[\'"]?stylesheet[\'"]?.+/>')
r'''<link.+href=['"]?([^'" >]+)['"]?.+media=['"]?(?:screen|all)['"]?.'''
r'''+rel=['"]?stylesheet['"]?.+/>''')
STYLE_ASSET_URLS_RE = (
'url\([\'"]?(/static/fonts/octicons/[^\'" \)]+)[\'"]?\)')
r'''url\(['"]?(/static/fonts/octicons/[^'" \)]+)['"]?\)''')
STYLE_ASSET_URLS_SUB_FORMAT = r'url("{0}\1")'
STYLE_ASSET_URLS_INLINE_FORMAT = (
'url\([\'"]?((?:/static|{0})/[^\'" \)]+)[\'"]?\)')
r'''url\(['"]?((?:/static|{0})/[^'" \)]+)['"]?\)''')

0 comments on commit 41b2509

Please sign in to comment.