Skip to content

Instantly share code, notes, and snippets.

View alberic89's full-sized avatar
🐧

alberic89

🐧
  • Entre mon clavier et ma chaise.
View GitHub Profile
@cyanidium
cyanidium / unifieddiff.py
Last active October 8, 2023 16:57 — forked from noporpoise/unifieddiff.py
Apply unified diff patches in pure python2/3
#!/usr/bin/env python
# coding=utf-8
# License: Public domain (CC0)
# Isaac Turner 2016/12/05
from __future__ import print_function
import difflib
import re
@noporpoise
noporpoise / unifieddiff.py
Last active November 14, 2023 18:59
Apply unified diff patches in pure python2/3
#!/usr/bin/env python
# coding=utf-8
# License: Public domain (CC0)
# Isaac Turner 2016/12/05
from __future__ import print_function
import difflib
import re