From d4a7fda960dd99e16c460ed35f515e775d3d46e7 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 8 Jun 2014 00:26:17 +0300 Subject: [PATCH] functools: Add dummy update_wrapper(), wraps(). --- functools/functools.py | 10 ++++++++++ functools/metadata.txt | 2 +- functools/setup.py | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/functools/functools.py b/functools/functools.py index 5e165eed..a23c7709 100644 --- a/functools/functools.py +++ b/functools/functools.py @@ -4,3 +4,13 @@ def partial(func, *args, **kwargs): kw.update(more_kwargs) func(*(args + more_args), **kw) return _partial + + +def update_wrapper(wrapper, wrapped): + # Dummy impl + return wrapper + + +def wraps(wrapped): + # Dummy impl + return wrapped diff --git a/functools/metadata.txt b/functools/metadata.txt index d252b56c..808e9d87 100644 --- a/functools/metadata.txt +++ b/functools/metadata.txt @@ -1,3 +1,3 @@ srctype = micropython-lib type = module -version = 0.0.1 +version = 0.0.2 diff --git a/functools/setup.py b/functools/setup.py index c5503aa8..da30eb98 100644 --- a/functools/setup.py +++ b/functools/setup.py @@ -6,7 +6,7 @@ from setuptools import setup setup(name='micropython-functools', - version='0.0.1', + version='0.0.2', description='functools module for MicroPython', long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", url='https://github.com/micropython/micropython/issues/405',