view MoinMoin/support/ @ 6111:1fdd537e9d83

SubProcess: reimplement exec_cmd subclassing Popen and overriding some methods isn't pretty. the code we have was written for py 2.4 or so and the py 2.7 Popen looked quite different. this way with the timer should be less problematic.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 06 Sep 2016 04:39:28 +0200
parents df21062e294d
line wrap: on
line source
    MoinMoin - Support Package

    Was: Stuff for compatibility with Python < 2.7. Just a dummy now.

    @copyright: 2007 Heinrich Wendel <>,
                2009 MoinMoin:ThomasWaldmann
    @license: GNU GPL, see COPYING for details.

import string

rsplit = string.rsplit

sorted = sorted

set = set
frozenset = frozenset

from functools import partial

import hashlib, hmac

hash_new =

def hmac_new(key, msg, digestmod=hashlib.sha1):
    return, msg, digestmod)