From: Ansgar Burchardt Date: Tue, 18 Aug 2015 19:44:02 +0000 (+0200) Subject: Remove unused regular expression. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;ds=inline;h=c24bd56cce877f2d9a67c44d27604358e24d18e8;hp=28903fa31f90164d3ea784b31be0e9a19fc5fd8c;p=dak.git Remove unused regular expression. --- 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