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
@alberic89
alberic89 / unifieddiff.py
Last active October 8, 2023 16:57 — forked from cyanidium/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
@alberic89
alberic89 / unifieddiff.py
Created October 8, 2023 16:55 — 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