Skip to content

Instantly share code, notes, and snippets.

Avatar

Raajit Raj raajitr

View GitHub Profile
@raajitr
raajitr / docstring_to_raw.py
Created Oct 19, 2017
Script to convert docstring in python code to raw string for the whole project at once.
View docstring_to_raw.py
"""
Usage: Place this file at the root of your project where this code will recursively change docstring to raw string in every py file.
`python doctstring_to_raw.py`
You can also specify the path.
`python doctstring_to_raw.py <path>`
Note: Path should be Unix style. Haven't tested in Windows so not sure if it'll work or not.
"""