chiark / gitweb /
Escape: Add missing r in regexp literals ('...' => r'...') [6]
[git-buildpackage.git] / gbp / scripts / dch.py
index 6297d2d7aadbd0831a0df1b8a51e9a4ef4410096..2584eff0ab7204e0b4ae9b9b34c043f6ef43ae76 100644 (file)
@@ -34,7 +34,7 @@ from gbp.scripts.common import ExitCodes, maybe_debug_raise
 from gbp.scripts.common.hook import Hook
 
 user_customizations = {}
-snapshot_re = re.compile("\s*\*\* SNAPSHOT build @(?P<commit>[a-z0-9]+)\s+\*\*")
+snapshot_re = re.compile(r"\s*\*\* SNAPSHOT build @(?P<commit>[a-z0-9]+)\s+\*\*")
 
 
 def guess_version_from_upstream(repo, upstream_tag_format, upstream_branch, cp=None):