]> arthur.barton.de Git - bup.git/commit
some_invalid_save_parts_rx: avoid nested char set
authorRob Browning <rlb@defaultvalue.org>
Tue, 10 Sep 2019 07:10:08 +0000 (02:10 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 5 Oct 2019 15:37:32 +0000 (10:37 -0500)
commita76b8337e13457a266216489f1d4f74c63944bf3
tree534ba5c77f759e24ddc58967f0c150854884a4e7
parentf1b53cb8b21aac5b11f0fec4b7c31f71412ce075
some_invalid_save_parts_rx: avoid nested char set

Escape square bracket to avoid possible future trouble with Python 3+:

  >>> re.compile(r'[[ ~^:?*\\]|\.\.|//|@{')
  __main__:1: FutureWarning: Possible nested set at position 1

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/helpers.py