[153422] contrib/buildbot-test/master.cfg

larryv at macports.org larryv at macports.org
Fri Sep 30 03:05:45 CEST 2016


Revision: 153422
          https://trac.macports.org/changeset/153422
Author:   larryv at macports.org
Date:     2016-09-29 18:05:44 -0700 (Thu, 29 Sep 2016)
Log Message:
-----------
buildbot: Use raw strings for all regex

Modified Paths:
--------------
    contrib/buildbot-test/master.cfg

Modified: contrib/buildbot-test/master.cfg
===================================================================
--- contrib/buildbot-test/master.cfg	2016-09-30 01:05:42 UTC (rev 153421)
+++ contrib/buildbot-test/master.cfg	2016-09-30 01:05:44 UTC (rev 153422)
@@ -553,7 +553,7 @@
 }
 
 c['builders']=[]
-extract_os = re.compile('10\.\d+')
+extract_os = re.compile(r'10\.\d+')
 for plat in build_platforms:
     os_match = extract_os.search(plat)
     os_version = os_match.group(0) if os_match else plat
@@ -724,7 +724,7 @@
         summary_log  = [x for x in summary_step.getLogs() if x.getName() == 'stdio'][0]
         failed_ports = set()
         maintainers_to_notify = set()
-        pattern = re.compile("^Building '(?P<port>.*?)'.*?(\(failed to install dependency '(?P<dependency>.*?)'\))?( maintainers: (?P<maintainers>.*?)[.])?$")
+        pattern = re.compile(r"^Building '(?P<port>.*?)'.*?(\(failed to install dependency '(?P<dependency>.*?)'\))?( maintainers: (?P<maintainers>.*?)[.])?$")
         # iterate through all the ports being built
         for line in summary_log.getText().splitlines():
             # in case of a build error, print the error and add the broken port(s) to the list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20160929/ae171a61/attachment-0002.html>


More information about the macports-changes mailing list