From 2d9b461003cfe255c3ad51bd9ca74ac5efe43e74 Mon Sep 17 00:00:00 2001 From: ignis Date: Mon, 5 Apr 2021 15:04:31 +0900 Subject: [PATCH] dnstools added comment to filename pattern --- dnstool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnstool.py b/dnstool.py index e0cea8c..428a08c 100644 --- a/dnstool.py +++ b/dnstool.py @@ -7,8 +7,6 @@ class DnsCase: import os import re - p = re.compile("fort[.][0-9]{4,}") - # Case name if case_name is None: self.name = os.path.basename(case_root) @@ -19,6 +17,8 @@ class DnsCase: self.case_root = os.path.abspath(case_root) # List of data files. fort.xxxx[x*] + # matches fort.? files with more than 4 digits + p = re.compile("fort[.][0-9]{4,}") self.data_files = (sorted(filter(p.match, os.listdir(case_root)))) # Read meta data from the first data file