Encode %xx coded wildcards into P4 coding.
(path)
| 1441 | |
| 1442 | |
| 1443 | def wildcard_encode(path): |
| 1444 | """Encode %xx coded wildcards into P4 coding.""" |
| 1445 | |
| 1446 | # do % first to avoid double-encoding the %s introduced here |
| 1447 | path = path.replace("%", "%25") \ |
| 1448 | .replace("*", "%2A") \ |
| 1449 | .replace("#", "%23") \ |
| 1450 | .replace("@", "%40") |
| 1451 | return path |
| 1452 | |
| 1453 | |
| 1454 | def wildcard_present(path): |
no outgoing calls
no test coverage detected