Skip to content

Instantly share code, notes, and snippets.

View raajitr's full-sized avatar

Raajit Raj raajitr

View GitHub Profile
@raajitr
raajitr / docstring_to_raw.py
Created October 19, 2017 19:08
Script to convert docstring in python code to raw string for the whole project at once.
"""
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.
"""