(pin)
| 34 | |
| 35 | |
| 36 | def _prettify_pin(pin): |
| 37 | if pin is None: |
| 38 | return "" |
| 39 | pins = pin.split(",") |
| 40 | replacements = { |
| 41 | "<=": " ≤ ", |
| 42 | ">=": " ≥ ", |
| 43 | "<": " < ", |
| 44 | ">": " > ", |
| 45 | } |
| 46 | for old, new in replacements.items(): |
| 47 | pins = [p.replace(old, new) for p in pins] |
| 48 | pins = reversed(pins) |
| 49 | return ",".join(pins) |
| 50 | |
| 51 | |
| 52 | # get the dependency info |
no test coverage detected