@@ -201,7 +201,7 @@ def fill_in_wg_drafts(group):
201201
202202
203203def check_group_email_aliases ():
204- pattern = re .compile ('expand-(.*?)(-\w+)@.*? +(.*)$' )
204+ pattern = re .compile (r 'expand-(.*?)(-\w+)@.*? +(.*)$' )
205205 tot_count = 0
206206 good_count = 0
207207 with open (settings .GROUP_VIRTUAL_PATH ,"r" ) as virtual_file :
@@ -414,7 +414,7 @@ def concluded_groups(request):
414414 sections ['Review teams' ] = Group .objects .filter (type = 'review' , state = "conclude" ).select_related ("state" , "charter" ).order_by ("parent__name" ,"acronym" )
415415 sections ['Teams' ] = Group .objects .filter (type = 'team' , state = "conclude" ).select_related ("state" , "charter" ).order_by ("parent__name" ,"acronym" )
416416
417- for name , groups in list ( sections .items () ):
417+ for name , groups in sections .items ():
418418
419419 # add start/conclusion date
420420 d = dict ((g .pk , g ) for g in groups )
@@ -625,9 +625,9 @@ def group_about_status_edit(request, acronym, group_type=None):
625625
626626def get_group_email_aliases (acronym , group_type ):
627627 if acronym :
628- pattern = re .compile ('expand-(%s)(-\w+)@.*? +(.*)$' % acronym )
628+ pattern = re .compile (r 'expand-(%s)(-\w+)@.*? +(.*)$'% acronym )
629629 else :
630- pattern = re .compile ('expand-(.*?)(-\w+)@.*? +(.*)$' )
630+ pattern = re .compile (r 'expand-(.*?)(-\w+)@.*? +(.*)$' )
631631
632632 aliases = []
633633 with open (settings .GROUP_VIRTUAL_PATH ,"r" ) as virtual_file :
@@ -976,7 +976,7 @@ def diff(attr, name):
976976 group .groupurl_set .all ().delete ()
977977 # Add new ones
978978 for u in new_urls :
979- m = re .search ('(?P<url>[\w\d:#@%/;$()~_?\+-=\\ \.&]+)( \((?P<name>.+)\))?' , u )
979+ m = re .search (r '(?P<url>[\w\d:#@%/;$()~_?\+-=\\\.&]+)( \((?P<name>.+)\))?' , u )
980980 if m :
981981 if m .group ('name' ):
982982 url = GroupURL (url = m .group ('url' ), name = m .group ('name' ), group = group )
0 commit comments