From c24bd56cce877f2d9a67c44d27604358e24d18e8 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Tue, 18 Aug 2015 21:44:02 +0200 Subject: [PATCH 1/1] Remove unused regular expression. --- daklib/regexes.py | 2 -- daklib/utils.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/daklib/regexes.py b/daklib/regexes.py index 86ca6a95..adc5b24b 100644 --- a/daklib/regexes.py +++ b/daklib/regexes.py @@ -51,8 +51,6 @@ orig_source_ext_re = r"orig(?:-.+)?\.tar\.(?:gz|bz2|xz)" re_orig_source_ext = re.compile(orig_source_ext_re + "$") re_source_ext = re.compile("(" + orig_source_ext_re + r"|debian\.tar\.(?:gz|bz2|xz)|diff\.gz|tar\.(?:gz|bz2|xz)|dsc)$") re_issource = re.compile(r"(.+)_(.+?)\." + re_source_ext.pattern) -re_is_orig_source = re.compile (r"(.+)_(.+?)\.orig(?:-.+)?\.tar\.(?:gz|bz2|xz)$") -#re_is_orig_source = re.compile (r"(.+)_(.+?)\.(?:orig\.)?tar\.(?:gz|bz2)$") re_single_line_field = re.compile(r"^(\S*?)\s*:\s*(.*)") re_multi_line_field = re.compile(r"^\s(.*)") diff --git a/daklib/utils.py b/daklib/utils.py index d33ec308..2cf6871c 100644 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -59,7 +59,7 @@ from textutils import fix_maintainer from regexes import re_html_escaping, html_escaping, re_single_line_field, \ re_multi_line_field, re_srchasver, re_taint_free, \ re_re_mark, re_whitespace_comment, re_issource, \ - re_is_orig_source, re_build_dep_arch, re_parse_maintainer + re_build_dep_arch, re_parse_maintainer from formats import parse_format, validate_changes_format from srcformats import get_format_from_string -- 2.39.5