Copilot commented on code in PR #12662:
URL: https://github.com/apache/trafficserver/pull/12662#discussion_r2524711088


##########
doc/ext/traffic-server.py:
##########
@@ -466,15 +455,22 @@ def get_objects(self):
 
 # get the branch this documentation is building for in X.X.x form
 REPO_ROOT = 
os.path.join(os.path.dirname(os.path.dirname(os.environ['DOCUTILSCONFIG'])))
-CONFIGURE_AC = os.path.join(REPO_ROOT, 'configure.ac')
-with open(CONFIGURE_AC, 'r') as f:
-    contents = f.read()
-    match = 
re.compile(r'm4_define\(\[TS_VERSION_S],\[(.*?)]\)').search(contents)
-    autoconf_version = '.'.join(match.group(1).split('.', 2)[:2] + ['x'])
+contents = open('../CMakeLists.txt').read()

Review Comment:
   File is opened but is not closed.
   ```suggestion
   with open('../CMakeLists.txt') as f:
       contents = f.read()
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to