ejschwartz commited on
Commit
8e74111
·
1 Parent(s): 15f3753

Again bytestring

Browse files
Files changed (1) hide show
  1. dist.py +2 -12
dist.py CHANGED
@@ -187,19 +187,9 @@ def print_match_summary(str1, str2, wildcard_offsets_str1=None, wildcard_offsets
187
 
188
  for op in operations:
189
  if "Match:" in op or "Substitution:" in op or "Wildcard match:" in op or "Double wildcard:" in op:
190
- is_str1_wildcard = i in wildcard_offsets_str1
191
- is_str2_wildcard = j in wildcard_offsets_str2
192
-
193
- # Add brackets around wildcards
194
- if is_str1_wildcard:
195
- aligned_str1 += f"[{str1[i]}]"
196
- else:
197
- aligned_str1 += str1[i]
198
 
199
- if is_str2_wildcard:
200
- aligned_str2 += f"[{str2[j]}]"
201
- else:
202
- aligned_str2 += str2[j]
203
 
204
  # Determine match indicator
205
  if "Wildcard match:" in op or "Double wildcard:" in op:
 
187
 
188
  for op in operations:
189
  if "Match:" in op or "Substitution:" in op or "Wildcard match:" in op or "Double wildcard:" in op:
190
+ aligned_str1 += str1[i:i+1]
 
 
 
 
 
 
 
191
 
192
+ aligned_str2 += str2[j:j+1]
 
 
 
193
 
194
  # Determine match indicator
195
  if "Wildcard match:" in op or "Double wildcard:" in op: