equal
deleted
inserted
replaced
1064 assert fixphase or targetphase is None |
1064 assert fixphase or targetphase is None |
1065 if not replacements and not moves: |
1065 if not replacements and not moves: |
1066 return |
1066 return |
1067 |
1067 |
1068 # translate mapping's other forms |
1068 # translate mapping's other forms |
1069 if not util.safehasattr(replacements, b'items'): |
1069 if not util.safehasattr(replacements, 'items'): |
1070 replacements = {(n,): () for n in replacements} |
1070 replacements = {(n,): () for n in replacements} |
1071 else: |
1071 else: |
1072 # upgrading non tuple "source" to tuple ones for BC |
1072 # upgrading non tuple "source" to tuple ones for BC |
1073 repls = {} |
1073 repls = {} |
1074 for key, value in replacements.items(): |
1074 for key, value in replacements.items(): |