Created
June 20, 2012 06:04
-
-
Save knzm/2958374 to your computer and use it in GitHub Desktop.
How to decode path generated by rsync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> print re.sub(r'\\#(\d{3})', lambda m: chr(int(m.group(1), 8)), s).decode('utf-8') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment