You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2018/04/25 22:49:13 UTC

[trafficserver] branch master updated: Cleans up some pylint issues in the python code

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 925af2b  Cleans up some pylint issues in the python code
925af2b is described below

commit 925af2b45d2d7e50275c4faef8b3ba43d132b521
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Wed Apr 25 08:59:16 2018 -0600

    Cleans up some pylint issues in the python code
---
 doc/ext/traffic-server.py                      | 2 +-
 tests/gold_tests/headers/forwarded-observer.py | 4 ++--
 tests/gold_tests/headers/via-observer.py       | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/ext/traffic-server.py b/doc/ext/traffic-server.py
index 4a7f5d8..803d700 100644
--- a/doc/ext/traffic-server.py
+++ b/doc/ext/traffic-server.py
@@ -407,7 +407,7 @@ def xref_cleanup(app, env, node, contnode):
 # get the branch this documentation is building for in X.X.x form
 with open('../configure.ac', 'r') as f:
     contents = f.read()
-    match = re.compile('m4_define\(\[TS_VERSION_S],\[(.*?)]\)').search(contents)
+    match = re.compile(r'm4_define\(\[TS_VERSION_S],\[(.*?)]\)').search(contents)
     autoconf_version = '.'.join(match.group(1).split('.', 2)[:2] + ['x'])
 
 # get the current branch the local repository is on
diff --git a/tests/gold_tests/headers/forwarded-observer.py b/tests/gold_tests/headers/forwarded-observer.py
index 91b7baf..f817650 100644
--- a/tests/gold_tests/headers/forwarded-observer.py
+++ b/tests/gold_tests/headers/forwarded-observer.py
@@ -22,9 +22,9 @@ import subprocess
 
 log = open('forwarded.log', 'w')
 
-regexByEqualUuid = re.compile("^by=_[0-9a-f-]+$")
+regexByEqualUuid = re.compile(r'^by=_[0-9a-f-]+$')
 
-byCount = 0;
+byCount = 0
 byEqualUuid = "__INVALID__"
 
 def observe(headers):
diff --git a/tests/gold_tests/headers/via-observer.py b/tests/gold_tests/headers/via-observer.py
index dcfec01..1981335 100644
--- a/tests/gold_tests/headers/via-observer.py
+++ b/tests/gold_tests/headers/via-observer.py
@@ -20,7 +20,7 @@ Extract the protocol information from the VIA headers and store it in a log file
 import re
 
 log = open('via.log', 'w')
-rxp = re.compile('(\S+)\s+(\S+)\s\((\S+)\s+\[([^]]+)\]\s\[([^]]+)\]\s*\)')
+rxp = re.compile(r'(\S+)\s+(\S+)\s\((\S+)\s+\[([^]]+)\]\s\[([^]]+)\]\s*\)')
 
 
 def observe(headers):

-- 
To stop receiving notification emails like this one, please contact
zwoop@apache.org.