- Update to upstream release 3.1.2
- Drop patch included upstream
This commit is contained in:
parent
ec530daa2a
commit
fcbdf71b83
@ -1,6 +1,7 @@
|
|||||||
diff -up decorator-3.0.1/documentation.py.doctest decorator-3.0.1/documentation.py
|
Index: decorator-3.1.2/documentation.py
|
||||||
--- decorator-3.0.1/documentation.py.doctest 2009-05-21 21:13:24.171482875 -0700
|
===================================================================
|
||||||
+++ decorator-3.0.1/documentation.py 2009-05-21 21:59:01.242233871 -0700
|
--- decorator-3.1.2.orig/documentation.py
|
||||||
|
+++ decorator-3.1.2/documentation.py
|
||||||
@@ -120,7 +120,7 @@ keyword arguments:
|
@@ -120,7 +120,7 @@ keyword arguments:
|
||||||
|
|
||||||
>>> from inspect import getargspec
|
>>> from inspect import getargspec
|
||||||
@ -46,30 +47,3 @@ diff -up decorator-3.0.1/documentation.py.doctest decorator-3.0.1/documentation.
|
|||||||
>>> exotic_signature()
|
>>> exotic_signature()
|
||||||
calling exotic_signature with args ((1, 2),), {}
|
calling exotic_signature with args ((1, 2),), {}
|
||||||
3
|
3
|
||||||
@@ -281,7 +281,7 @@ can easily check that the signature has
|
|
||||||
.. code-block:: python
|
|
||||||
|
|
||||||
>>> print getargspec(trace)
|
|
||||||
- (['f'], None, None, None)
|
|
||||||
+ ArgSpec(args=['f'], varargs=None, keywords=None, defaults=None)
|
|
||||||
|
|
||||||
Therefore now ``trace`` can be used as a decorator and
|
|
||||||
the following will work:
|
|
||||||
@@ -387,13 +387,13 @@ be locked. Here is a minimalistic exampl
|
|
||||||
Each call to ``write`` will create a new writer thread, but there will
|
|
||||||
be no synchronization problems since ``write`` is locked.
|
|
||||||
|
|
||||||
->>> write("data1")
|
|
||||||
-<Thread(write-1, started)>
|
|
||||||
+>>> write("data1") # doctest: +ELLIPSIS
|
|
||||||
+<Thread(write-1, started...)>
|
|
||||||
|
|
||||||
>>> time.sleep(.1) # wait a bit, so we are sure data2 is written after data1
|
|
||||||
|
|
||||||
->>> write("data2")
|
|
||||||
-<Thread(write-2, started)>
|
|
||||||
+>>> write("data2") # doctest: +ELLIPSIS
|
|
||||||
+<Thread(write-2, started...)>
|
|
||||||
|
|
||||||
>>> time.sleep(2) # wait for the writers to complete
|
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
|
||||||
Name: python-decorator
|
Name: python-decorator
|
||||||
Version: 3.0.1
|
Version: 3.1.2
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Module to simplify usage of decorators
|
Summary: Module to simplify usage of decorators
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -52,6 +52,10 @@ nosetests --with-doctest
|
|||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 6 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-1
|
||||||
|
- Update to upstream release 3.1.2
|
||||||
|
- Drop patch included upstream
|
||||||
|
|
||||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-3
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user