Fixed wrapping of util.stringwrap
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 2 Mar 2014 03:54:37 +0000 (04:54 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 2 Mar 2014 03:55:30 +0000 (04:55 +0100)
wrw/util.py

index 79a8240..8eed5a0 100644 (file)
@@ -13,6 +13,7 @@ def stringwrap(charset):
             bk = callable(*args, **kwargs)
             for string in bk:
                 yield string.encode(charset)
+        wrapper.__wrapped__ = callable
         return wrapper
     return dec