Skip to content

Instantly share code, notes, and snippets.

View shaib's full-sized avatar

Shai Berger shaib

View GitHub Profile
@shaib
shaib / py3_fix_super_calls.md
Last active January 13, 2021 15:44 — forked from agmond/py3_fix_super_calls.py
Fix `super()` calls after migration to Python3

The following script fixes super() calls after migration from Python 2 to Python 3. The script edits the code automatically. Upon completion, the following steps are recommended:

  • Search for the regex super\([^\)] and fix manually those places (if needed)
  • Search for the regex super\(\s[^\)] and fix manually those places (if needed)
  • Run Flake8 and manually fix styling problems
@shaib
shaib / kmaildir_mbox_sub.py
Created October 14, 2017 17:55 — forked from scrinzi/kmaildir_mbox_sub.py
Migrate from KMail to ThunderBird
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Armin Scrinzi, August 4, 2012
Frédéric Grosshans, 19 January 2012
Nathan R. Yergler, 6 June 2010
This file does not contain sufficient creative expression to invoke
assertion of copyright. No warranty is expressed or implied; use at
your own risk.