Partially merge trunk into p3yk. The removal of Mac/Tools is confusing svn
merge in bad ways, so I'll have to merge that extra-carefully (probably manually.) Merged revisions 46495-46605 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r46495 | tim.peters | 2006-05-28 03:52:38 +0200 (Sun, 28 May 2006) | 2 lines Added missing svn:eol-style property to text files. ........ r46497 | tim.peters | 2006-05-28 12:41:29 +0200 (Sun, 28 May 2006) | 3 lines PyErr_Display(), PyErr_WriteUnraisable(): Coverity found a cut-and-paste bug in both: `className` was referenced before being checked for NULL. ........ r46499 | fredrik.lundh | 2006-05-28 14:06:46 +0200 (Sun, 28 May 2006) | 5 lines needforspeed: added Py_MEMCPY macro (currently tuned for Visual C only), and use it for string copy operations. this gives a 20% speedup on some string benchmarks. ........ r46501 | michael.hudson | 2006-05-28 17:51:40 +0200 (Sun, 28 May 2006) | 26 lines Quality control, meet exceptions.c. Fix a number of problems with the need for speed code: One is doing this sort of thing: Py_DECREF(self->field); self->field = newval; Py_INCREF(self->field); without being very sure that self->field doesn't start with a value that has a __del__, because that almost certainly can lead to segfaults. As self->args is constrained to be an exact tuple we may as well exploit this fact consistently. This leads to quite a lot of simplification (and, hey, probably better performance). Add some error checking in places lacking it. Fix some rather strange indentation in the Unicode code. Delete some trailing whitespace. More to come, I haven't fixed all the reference leaks yet... ........ r46502 | george.yoshida | 2006-05-28 18:39:09 +0200 (Sun, 28 May 2006) | 3 lines Patch #1080727: add "encoding" parameter to doctest.DocFileSuite Contributed by Bjorn Tillenius. ........ r46503 | martin.v.loewis | 2006-05-28 18:57:38 +0200 (Sun, 28 May 2006) | 4 lines Rest of patch #1490384: Commit icon source, remove claim that Erik von Blokland is the author of the installer picture. ........ r46504 | michael.hudson | 2006-05-28 19:40:29 +0200 (Sun, 28 May 2006) | 16 lines Quality control, meet exceptions.c, round two. Make some functions that should have been static static. Fix a bunch of refleaks by fixing the definition of MiddlingExtendsException. Remove all the __new__ implementations apart from BaseException_new. Rewrite most code that needs it to cope with NULL fields (such code could get excercised anyway, the __new__-removal just makes it more likely). This involved editing the code for WindowsError, which I can't test. This fixes all the refleaks in at least the start of a regrtest -R :: run. ........ r46505 | marc-andre.lemburg | 2006-05-28 19:46:58 +0200 (Sun, 28 May 2006) | 10 lines Initial version of systimes - a module to provide platform dependent performance measurements. The module is currently just a proof-of-concept implementation, but will integrated into pybench once it is stable enough. License: pybench license. Author: Marc-Andre Lemburg. ........ r46507 | armin.rigo | 2006-05-28 21:13:17 +0200 (Sun, 28 May 2006) | 15 lines ("Forward-port" of r46506) Remove various dependencies on dictionary order in the standard library tests, and one (clearly an oversight, potentially critical) in the standard library itself - base64.py. Remaining open issues: * test_extcall is an output test, messy to make robust * tarfile.py has a potential bug here, but I'm not familiar enough with this code. Filed in as SF bug #1496501. * urllib2.HTTPPasswordMgr() returns a random result if there is more than one matching root path. I'm asking python-dev for clarification... ........ r46508 | georg.brandl | 2006-05-28 22:11:45 +0200 (Sun, 28 May 2006) | 4 lines The empty string is a valid import path. (fixes #1496539) ........ r46509 | georg.brandl | 2006-05-28 22:23:12 +0200 (Sun, 28 May 2006) | 3 lines Patch #1496206: urllib2 PasswordMgr ./. default ports ........ r46510 | georg.brandl | 2006-05-28 22:57:09 +0200 (Sun, 28 May 2006) | 3 lines Fix refleaks in UnicodeError get and set methods. ........ r46511 | michael.hudson | 2006-05-28 23:19:03 +0200 (Sun, 28 May 2006) | 3 lines use the UnicodeError traversal and clearing functions in UnicodeError subclasses. ........ r46512 | thomas.wouters | 2006-05-28 23:32:12 +0200 (Sun, 28 May 2006) | 4 lines Make last patch valid C89 so Windows compilers can deal with it. ........ r46513 | georg.brandl | 2006-05-28 23:42:54 +0200 (Sun, 28 May 2006) | 3 lines Fix ref-antileak in _struct.c which eventually lead to deallocating None. ........ r46514 | georg.brandl | 2006-05-28 23:57:35 +0200 (Sun, 28 May 2006) | 4 lines Correct None refcount issue in Mac modules. (Are they still used?) ........ r46515 | armin.rigo | 2006-05-29 00:07:08 +0200 (Mon, 29 May 2006) | 3 lines A clearer error message when passing -R to regrtest.py with release builds of Python. ........ r46516 | georg.brandl | 2006-05-29 00:14:04 +0200 (Mon, 29 May 2006) | 3 lines Fix C function calling conventions in _sre module. ........ r46517 | georg.brandl | 2006-05-29 00:34:51 +0200 (Mon, 29 May 2006) | 3 lines Convert audioop over to METH_VARARGS. ........ r46518 | georg.brandl | 2006-05-29 00:38:57 +0200 (Mon, 29 May 2006) | 3 lines METH_NOARGS functions do get called with two args. ........ r46519 | georg.brandl | 2006-05-29 11:46:51 +0200 (Mon, 29 May 2006) | 4 lines Fix refleak in socketmodule. Replace bogus Py_BuildValue calls. Fix refleak in exceptions. ........ r46520 | nick.coghlan | 2006-05-29 14:43:05 +0200 (Mon, 29 May 2006) | 7 lines Apply modified version of Collin Winter's patch #1478788 Renames functional extension module to _functools and adds a Python functools module so that utility functions like update_wrapper can be added easily. ........ r46522 | georg.brandl | 2006-05-29 15:53:16 +0200 (Mon, 29 May 2006) | 3 lines Convert fmmodule to METH_VARARGS. ........ r46523 | georg.brandl | 2006-05-29 16:13:21 +0200 (Mon, 29 May 2006) | 3 lines Fix #1494605. ........ r46524 | georg.brandl | 2006-05-29 16:28:05 +0200 (Mon, 29 May 2006) | 3 lines Handle PyMem_Malloc failure in pystrtod.c. Closes #1494671. ........ r46525 | georg.brandl | 2006-05-29 16:33:55 +0200 (Mon, 29 May 2006) | 3 lines Fix compiler warning. ........ r46526 | georg.brandl | 2006-05-29 16:39:00 +0200 (Mon, 29 May 2006) | 3 lines Fix #1494787 (pyclbr counts whitespace as superclass name) ........ r46527 | bob.ippolito | 2006-05-29 17:47:29 +0200 (Mon, 29 May 2006) | 1 line simplify the struct code a bit (no functional changes) ........ r46528 | armin.rigo | 2006-05-29 19:59:47 +0200 (Mon, 29 May 2006) | 2 lines Silence a warning. ........ r46529 | georg.brandl | 2006-05-29 21:39:45 +0200 (Mon, 29 May 2006) | 3 lines Correct some value converting strangenesses. ........ r46530 | nick.coghlan | 2006-05-29 22:27:44 +0200 (Mon, 29 May 2006) | 1 line When adding a module like functools, it helps to let SVN know about the file. ........ r46531 | georg.brandl | 2006-05-29 22:52:54 +0200 (Mon, 29 May 2006) | 4 lines Patches #1497027 and #972322: try HTTP digest auth first, and watch out for handler name collisions. ........ r46532 | georg.brandl | 2006-05-29 22:57:01 +0200 (Mon, 29 May 2006) | 3 lines Add News entry for last commit. ........ r46533 | georg.brandl | 2006-05-29 23:04:52 +0200 (Mon, 29 May 2006) | 4 lines Make use of METH_O and METH_NOARGS where possible. Use Py_UnpackTuple instead of PyArg_ParseTuple where possible. ........ r46534 | georg.brandl | 2006-05-29 23:58:42 +0200 (Mon, 29 May 2006) | 3 lines Convert more modules to METH_VARARGS. ........ r46535 | georg.brandl | 2006-05-30 00:00:30 +0200 (Tue, 30 May 2006) | 3 lines Whoops. ........ r46536 | fredrik.lundh | 2006-05-30 00:42:07 +0200 (Tue, 30 May 2006) | 4 lines fixed "abc".count("", 100) == -96 error (hopefully, nobody's relying on the current behaviour ;-) ........ r46537 | bob.ippolito | 2006-05-30 00:55:48 +0200 (Tue, 30 May 2006) | 1 line struct: modulo math plus warning on all endian-explicit formats for compatibility with older struct usage (ugly) ........ r46539 | bob.ippolito | 2006-05-30 02:26:01 +0200 (Tue, 30 May 2006) | 1 line Add a length check to aifc to ensure it doesn't write a bogus file ........ r46540 | tim.peters | 2006-05-30 04:25:25 +0200 (Tue, 30 May 2006) | 10 lines deprecated_err(): Stop bizarre warning messages when the tests are run in the order: test_genexps (or any other doctest-based test) test_struct test_doctest The `warnings` module needs an advertised way to save/restore its internal filter list. ........ r46541 | tim.peters | 2006-05-30 04:26:46 +0200 (Tue, 30 May 2006) | 2 lines Whitespace normalization. ........ r46542 | tim.peters | 2006-05-30 04:30:30 +0200 (Tue, 30 May 2006) | 2 lines Set a binary svn:mime-type property on this UTF-8 encoded file. ........ r46543 | neal.norwitz | 2006-05-30 05:18:50 +0200 (Tue, 30 May 2006) | 1 line Simplify further by using AddStringConstant ........ r46544 | tim.peters | 2006-05-30 06:16:25 +0200 (Tue, 30 May 2006) | 6 lines Convert relevant dict internals to Py_ssize_t. I don't have a box with nearly enough RAM, or an OS, that could get close to tickling this, though (requires a dict w/ at least 2**31 entries). ........ r46545 | neal.norwitz | 2006-05-30 06:19:21 +0200 (Tue, 30 May 2006) | 1 line Remove stray | in comment ........ r46546 | neal.norwitz | 2006-05-30 06:25:05 +0200 (Tue, 30 May 2006) | 1 line Use Py_SAFE_DOWNCAST for safety. Fix format strings. Remove 2 more stray | in comment ........ r46547 | neal.norwitz | 2006-05-30 06:43:23 +0200 (Tue, 30 May 2006) | 1 line No DOWNCAST is required since sizeof(Py_ssize_t) >= sizeof(int) and Py_ReprEntr returns an int ........ r46548 | tim.peters | 2006-05-30 07:04:59 +0200 (Tue, 30 May 2006) | 3 lines dict_print(): Explicitly narrow the return value from a (possibly) wider variable. ........ r46549 | tim.peters | 2006-05-30 07:23:59 +0200 (Tue, 30 May 2006) | 5 lines dict_print(): So that Neal & I don't spend the rest of our lives taking turns rewriting code that works ;-), get rid of casting illusions by declaring a new variable with the obvious type. ........ r46550 | georg.brandl | 2006-05-30 09:04:55 +0200 (Tue, 30 May 2006) | 3 lines Restore exception pickle support. #1497319. ........ r46551 | georg.brandl | 2006-05-30 09:13:29 +0200 (Tue, 30 May 2006) | 3 lines Add a test case for exception pickling. args is never NULL. ........ r46552 | neal.norwitz | 2006-05-30 09:21:10 +0200 (Tue, 30 May 2006) | 1 line Don't fail if the (sub)pkgname already exist. ........ r46553 | georg.brandl | 2006-05-30 09:34:45 +0200 (Tue, 30 May 2006) | 3 lines Disallow keyword args for exceptions. ........ r46554 | neal.norwitz | 2006-05-30 09:36:54 +0200 (Tue, 30 May 2006) | 5 lines I'm impatient. I think this will fix a few more problems with the buildbots. I'm not sure this is the best approach, but I can't think of anything better. If this creates problems, feel free to revert, but I think it's safe and should make things a little better. ........ r46555 | georg.brandl | 2006-05-30 10:17:00 +0200 (Tue, 30 May 2006) | 4 lines Do the check for no keyword arguments in __init__ so that subclasses of Exception can be supplied keyword args ........ r46556 | georg.brandl | 2006-05-30 10:47:19 +0200 (Tue, 30 May 2006) | 3 lines Convert test_exceptions to unittest. ........ r46557 | andrew.kuchling | 2006-05-30 14:52:01 +0200 (Tue, 30 May 2006) | 1 line Add SoC name, and reorganize this section a bit ........ r46559 | tim.peters | 2006-05-30 17:53:34 +0200 (Tue, 30 May 2006) | 11 lines PyLong_FromString(): Continued fraction analysis (explained in a new comment) suggests there are almost certainly large input integers in all non-binary input bases for which one Python digit too few is initally allocated to hold the final result. Instead of assert-failing when that happens, allocate more space. Alas, I estimate it would take a few days to find a specific such case, so this isn't backed up by a new test (not to mention that such a case may take hours to run, since conversion time is quadratic in the number of digits, and preliminary attempts suggested that the smallest such inputs contain at least a million digits). ........ r46560 | fredrik.lundh | 2006-05-30 19:11:48 +0200 (Tue, 30 May 2006) | 3 lines changed find/rfind to return -1 for matches outside the source string ........ r46561 | bob.ippolito | 2006-05-30 19:37:54 +0200 (Tue, 30 May 2006) | 1 line Change wrapping terminology to overflow masking ........ r46562 | fredrik.lundh | 2006-05-30 19:39:58 +0200 (Tue, 30 May 2006) | 3 lines changed count to return 0 for slices outside the source string ........ r46568 | tim.peters | 2006-05-31 01:28:02 +0200 (Wed, 31 May 2006) | 2 lines Whitespace normalization. ........ r46569 | brett.cannon | 2006-05-31 04:19:54 +0200 (Wed, 31 May 2006) | 5 lines Clarify wording on default values for strptime(); defaults are used when better values cannot be inferred. Closes bug #1496315. ........ r46572 | neal.norwitz | 2006-05-31 09:43:27 +0200 (Wed, 31 May 2006) | 1 line Calculate smallest properly (it was off by one) and use proper ssize_t types for Win64 ........ r46573 | neal.norwitz | 2006-05-31 10:01:08 +0200 (Wed, 31 May 2006) | 1 line Revert last checkin, it is better to do make distclean ........ r46574 | neal.norwitz | 2006-05-31 11:02:44 +0200 (Wed, 31 May 2006) | 3 lines On 64-bit platforms running test_struct after test_tarfile would fail since the deprecation warning wouldn't be raised. ........ r46575 | thomas.heller | 2006-05-31 13:37:58 +0200 (Wed, 31 May 2006) | 3 lines PyTuple_Pack is not available in Python 2.3, but ctypes must stay compatible with that. ........ r46576 | andrew.kuchling | 2006-05-31 15:18:56 +0200 (Wed, 31 May 2006) | 1 line 'functional' module was renamed to 'functools' ........ r46577 | kristjan.jonsson | 2006-05-31 15:35:41 +0200 (Wed, 31 May 2006) | 1 line Fixup the PCBuild8 project directory. exceptions.c have moved to Objects, and the functionalmodule.c has been replaced with _functoolsmodule.c. Other minor changes to .vcproj files and .sln to fix compilation ........ r46578 | andrew.kuchling | 2006-05-31 16:08:48 +0200 (Wed, 31 May 2006) | 15 lines [Bug #1473048] SimpleXMLRPCServer and DocXMLRPCServer don't look at the path of the HTTP request at all; you can POST or GET from / or /RPC2 or /blahblahblah with the same results. Security scanners that look for /cgi-bin/phf will therefore report lots of vulnerabilities. Fix: add a .rpc_paths attribute to the SimpleXMLRPCServer class, and report a 404 error if the path isn't on the allowed list. Possibly-controversial aspect of this change: the default makes only '/' and '/RPC2' legal. Maybe this will break people's applications (though I doubt it). We could just set the default to an empty tuple, which would exactly match the current behaviour. ........ r46579 | andrew.kuchling | 2006-05-31 16:12:47 +0200 (Wed, 31 May 2006) | 1 line Mention SimpleXMLRPCServer change ........ r46580 | tim.peters | 2006-05-31 16:28:07 +0200 (Wed, 31 May 2006) | 2 lines Trimmed trailing whitespace. ........ r46581 | tim.peters | 2006-05-31 17:33:22 +0200 (Wed, 31 May 2006) | 4 lines _range_error(): Speed and simplify (there's no real need for loops here). Assert that size_t is actually big enough, and that f->size is at least one. Wrap a long line. ........ r46582 | tim.peters | 2006-05-31 17:34:37 +0200 (Wed, 31 May 2006) | 2 lines Repaired error in new comment. ........ r46584 | neal.norwitz | 2006-06-01 07:32:49 +0200 (Thu, 01 Jun 2006) | 4 lines Remove ; at end of macro. There was a compiler recently that warned about extra semi-colons. It may have been the HP C compiler. This file will trigger a bunch of those warnings now. ........ r46585 | georg.brandl | 2006-06-01 08:39:19 +0200 (Thu, 01 Jun 2006) | 3 lines Correctly unpickle 2.4 exceptions via __setstate__ (patch #1498571) ........ r46586 | georg.brandl | 2006-06-01 10:27:32 +0200 (Thu, 01 Jun 2006) | 3 lines Correctly allocate complex types with tp_alloc. (bug #1498638) ........ r46587 | georg.brandl | 2006-06-01 14:30:46 +0200 (Thu, 01 Jun 2006) | 2 lines Correctly dispatch Faults in loads (patch #1498627) ........ r46588 | georg.brandl | 2006-06-01 15:00:49 +0200 (Thu, 01 Jun 2006) | 3 lines Some code style tweaks, and remove apply. ........ r46589 | armin.rigo | 2006-06-01 15:19:12 +0200 (Thu, 01 Jun 2006) | 5 lines [ 1497053 ] Let dicts propagate the exceptions in user __eq__(). [ 1456209 ] dictresize() vulnerability ( <- backport candidate ). ........ r46590 | tim.peters | 2006-06-01 15:41:46 +0200 (Thu, 01 Jun 2006) | 2 lines Whitespace normalization. ........ r46591 | tim.peters | 2006-06-01 15:49:23 +0200 (Thu, 01 Jun 2006) | 2 lines Record bugs 1275608 and 1456209 as being fixed. ........ r46592 | tim.peters | 2006-06-01 15:56:26 +0200 (Thu, 01 Jun 2006) | 5 lines Re-enable a new empty-string test added during the NFS sprint, but disabled then because str and unicode strings gave different results. The implementations were repaired later during the sprint, but the new test remained disabled. ........ r46594 | tim.peters | 2006-06-01 17:50:44 +0200 (Thu, 01 Jun 2006) | 7 lines Armin committed his patch while I was reviewing it (I'm sure he didn't know this), so merged in some changes I made during review. Nothing material apart from changing a new `mask` local from int to Py_ssize_t. Mostly this is repairing comments that were made incorrect, and adding new comments. Also a few minor code rewrites for clarity or helpful succinctness. ........ r46599 | neal.norwitz | 2006-06-02 06:45:53 +0200 (Fri, 02 Jun 2006) | 1 line Convert docstrings to comments so regrtest -v prints method names ........ r46600 | neal.norwitz | 2006-06-02 06:50:49 +0200 (Fri, 02 Jun 2006) | 2 lines Fix memory leak found by valgrind. ........ r46601 | neal.norwitz | 2006-06-02 06:54:52 +0200 (Fri, 02 Jun 2006) | 1 line More memory leaks from valgrind ........ r46602 | neal.norwitz | 2006-06-02 08:23:00 +0200 (Fri, 02 Jun 2006) | 11 lines Patch #1357836: Prevent an invalid memory read from test_coding in case the done flag is set. In that case, the loop isn't entered. I wonder if rather than setting the done flag in the cases before the loop, if they should just exit early. This code looks like it should be refactored. Backport candidate (also the early break above if decoding_fgets fails) ........ r46603 | martin.blais | 2006-06-02 15:03:43 +0200 (Fri, 02 Jun 2006) | 1 line Fixed struct test to not use unittest. ........ r46605 | tim.peters | 2006-06-03 01:22:51 +0200 (Sat, 03 Jun 2006) | 10 lines pprint functions used to sort a dict (by key) if and only if the output required more than one line. "Small" dicts got displayed in seemingly random order (the hash-induced order produced by dict.__repr__). None of this was documented. Now pprint functions always sort dicts by key, and the docs promise it. This was proposed and agreed to during the PyCon 2006 core sprint -- I just didn't have time for it before now. ........
This commit is contained in:
parent
60254fe844
commit
4d70c3d9dd
|
@ -262,6 +262,7 @@ LIBFILES= $(MANSTYLES) $(INDEXSTYLES) $(COMMONTEX) \
|
|||
lib/libsimplexmlrpc.tex \
|
||||
lib/libdocxmlrpc.tex \
|
||||
lib/libpyexpat.tex \
|
||||
lib/libfunctools.tex \
|
||||
lib/xmldom.tex \
|
||||
lib/xmldomminidom.tex \
|
||||
lib/xmldompulldom.tex \
|
||||
|
|
|
@ -129,8 +129,8 @@ and how to embed it in other applications.
|
|||
% Functions, Functional, Generators and Iterators
|
||||
% XXX intro functional
|
||||
\input{libitertools}
|
||||
\input{libfunctional}
|
||||
\input{liboperator} % from runtime - better with itertools and functional
|
||||
\input{libfunctools}
|
||||
\input{liboperator} % from runtime - better with itertools and functools
|
||||
|
||||
|
||||
% =============
|
||||
|
|
|
@ -868,7 +868,7 @@ sections \ref{doctest-simple-testmod} and
|
|||
globs}\optional{, verbose}\optional{,
|
||||
report}\optional{, optionflags}\optional{,
|
||||
extraglobs}\optional{, raise_on_error}\optional{,
|
||||
parser}}
|
||||
parser}\optional{, encoding}}
|
||||
|
||||
All arguments except \var{filename} are optional, and should be
|
||||
specified in keyword form.
|
||||
|
@ -941,7 +941,13 @@ sections \ref{doctest-simple-testmod} and
|
|||
subclass) that should be used to extract tests from the files. It
|
||||
defaults to a normal parser (i.e., \code{\class{DocTestParser}()}).
|
||||
|
||||
Optional argument \var{encoding} specifies an encoding that should
|
||||
be used to convert the file to unicode.
|
||||
|
||||
\versionadded{2.4}
|
||||
|
||||
\versionchanged[The parameter \var{encoding} was added]{2.5}
|
||||
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{testmod}{\optional{m}\optional{, name}\optional{,
|
||||
|
@ -1061,7 +1067,8 @@ instances from text files and modules with doctests:
|
|||
\begin{funcdesc}{DocFileSuite}{\optional{module_relative}\optional{,
|
||||
package}\optional{, setUp}\optional{,
|
||||
tearDown}\optional{, globs}\optional{,
|
||||
optionflags}\optional{, parser}}
|
||||
optionflags}\optional{, parser}\optional{,
|
||||
encoding}}
|
||||
|
||||
Convert doctest tests from one or more text files to a
|
||||
\class{\refmodule{unittest}.TestSuite}.
|
||||
|
@ -1128,11 +1135,17 @@ instances from text files and modules with doctests:
|
|||
subclass) that should be used to extract tests from the files. It
|
||||
defaults to a normal parser (i.e., \code{\class{DocTestParser}()}).
|
||||
|
||||
Optional argument \var{encoding} specifies an encoding that should
|
||||
be used to convert the file to unicode.
|
||||
|
||||
\versionadded{2.4}
|
||||
|
||||
\versionchanged[The global \code{__file__} was added to the
|
||||
globals provided to doctests loaded from a text file using
|
||||
\function{DocFileSuite()}]{2.5}
|
||||
|
||||
\versionchanged[The parameter \var{encoding} was added]{2.5}
|
||||
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{DocTestSuite}{\optional{module}\optional{,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
\section{\module{functional} ---
|
||||
\section{\module{functools} ---
|
||||
Higher order functions and operations on callable objects.}
|
||||
|
||||
\declaremodule{standard}{functional} % standard library, in Python
|
||||
\declaremodule{standard}{functools} % standard library, in Python
|
||||
|
||||
\moduleauthor{Peter Harris}{scav@blueyonder.co.uk}
|
||||
\moduleauthor{Raymond Hettinger}{python@rcn.com}
|
||||
|
@ -11,12 +11,12 @@
|
|||
|
||||
\versionadded{2.5}
|
||||
|
||||
The \module{functional} module is for higher-order functions: functions
|
||||
The \module{functools} module is for higher-order functions: functions
|
||||
that act on or return other functions. In general, any callable object can
|
||||
be treated as a function for the purposes of this module.
|
||||
|
||||
|
||||
The \module{functional} module defines the following function:
|
||||
The \module{functools} module defines the following function:
|
||||
|
||||
\begin{funcdesc}{partial}{func\optional{,*args}\optional{, **keywords}}
|
||||
Return a new \class{partial} object which when called will behave like
|
|
@ -20,6 +20,10 @@ and breaks them onto multiple lines if they don't fit within the
|
|||
allowed width. Construct \class{PrettyPrinter} objects explicitly if
|
||||
you need to adjust the width constraint.
|
||||
|
||||
\versionchanged[Dictionaries are sorted by key before the display is
|
||||
computed; before 2.5, a dictionary was sorted only if its display
|
||||
required more than one line, although that wasn't documented]{2.5}
|
||||
|
||||
The \module{pprint} module defines one class:
|
||||
|
||||
|
||||
|
|
|
@ -111,6 +111,15 @@ simple, stand alone XML-RPC servers.
|
|||
Registers the XML-RPC multicall function system.multicall.
|
||||
\end{methoddesc}
|
||||
|
||||
\begin{memberdesc}[SimpleXMLRPCServer]{rpc_paths}
|
||||
An attribute value that must be a tuple listing valid path portions of
|
||||
the URL for receiving XML-RPC requests. Requests posted to other
|
||||
paths will result in a 404 ``no such page'' HTTP error. If this
|
||||
tuple is empty, all paths will be considered valid.
|
||||
The default value is \code{('/', '/RPC2')}.
|
||||
\versionadded{2.5}
|
||||
\end{memberdesc}
|
||||
|
||||
Example:
|
||||
|
||||
\begin{verbatim}
|
||||
|
|
|
@ -314,7 +314,8 @@ returned by \function{ctime()}. If \var{string} cannot be parsed
|
|||
according to \var{format}, \exception{ValueError} is raised. If the
|
||||
string to be parsed has excess data after parsing,
|
||||
\exception{ValueError} is raised. The default values used to fill in
|
||||
any missing data are \code{(1900, 1, 1, 0, 0, 0, 0, 1, -1)} .
|
||||
any missing data when more accurate values cannot be inferred are
|
||||
\code{(1900, 1, 1, 0, 0, 0, 0, 1, -1)} .
|
||||
|
||||
Support for the \code{\%Z} directive is based on the values contained in
|
||||
\code{tzname} and whether \code{daylight} is true. Because of this,
|
||||
|
|
|
@ -65,9 +65,7 @@ exists), \class{HTTPSHandler} will also be added.
|
|||
|
||||
Beginning in Python 2.3, a \class{BaseHandler} subclass may also
|
||||
change its \member{handler_order} member variable to modify its
|
||||
position in the handlers list. Besides \class{ProxyHandler}, which has
|
||||
\member{handler_order} of \code{100}, all handlers currently have it
|
||||
set to \code{500}.
|
||||
position in the handlers list.
|
||||
\end{funcdesc}
|
||||
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ Wouters.}
|
|||
%======================================================================
|
||||
\section{PEP 309: Partial Function Application\label{pep-309}}
|
||||
|
||||
The \module{functional} module is intended to contain tools for
|
||||
The \module{functools} module is intended to contain tools for
|
||||
functional-style programming. Currently it only contains a
|
||||
\class{partial()} function, but new functions will probably be added
|
||||
in future versions of Python.
|
||||
|
@ -136,7 +136,7 @@ parameters filled in. Consider a Python function \code{f(a, b, c)};
|
|||
you could create a new function \code{g(b, c)} that was equivalent to
|
||||
\code{f(1, b, c)}. This is called ``partial function application'',
|
||||
and is provided by the \class{partial} class in the new
|
||||
\module{functional} module.
|
||||
\module{functools} module.
|
||||
|
||||
The constructor for \class{partial} takes the arguments
|
||||
\code{(\var{function}, \var{arg1}, \var{arg2}, ...
|
||||
|
@ -147,18 +147,18 @@ with the filled-in arguments.
|
|||
Here's a small but realistic example:
|
||||
|
||||
\begin{verbatim}
|
||||
import functional
|
||||
import functools
|
||||
|
||||
def log (message, subsystem):
|
||||
"Write the contents of 'message' to the specified subsystem."
|
||||
print '%s: %s' % (subsystem, message)
|
||||
...
|
||||
|
||||
server_log = functional.partial(log, subsystem='server')
|
||||
server_log = functools.partial(log, subsystem='server')
|
||||
server_log('Unable to open socket')
|
||||
\end{verbatim}
|
||||
|
||||
Here's another example, from a program that uses PyGTk. Here a
|
||||
Here's another example, from a program that uses PyGTK. Here a
|
||||
context-sensitive pop-up menu is being constructed dynamically. The
|
||||
callback provided for the menu option is a partially applied version
|
||||
of the \method{open_item()} method, where the first argument has been
|
||||
|
@ -170,7 +170,7 @@ class Application:
|
|||
def open_item(self, path):
|
||||
...
|
||||
def init (self):
|
||||
open_func = functional.partial(self.open_item, item_path)
|
||||
open_func = functools.partial(self.open_item, item_path)
|
||||
popup_menu.append( ("Open", open_func, 1) )
|
||||
\end{verbatim}
|
||||
|
||||
|
@ -1508,6 +1508,14 @@ therefore now works on non-{\UNIX} platforms.
|
|||
(Patch from Robert Kiendl.)
|
||||
% Patch #1472854
|
||||
|
||||
\item The \module{SimpleXMLRPCServer} and \module{DocXMLRPCServer}
|
||||
classes now have a \member{rpc_paths} attribute that constrains
|
||||
XML-RPC operations to a limited set of URL paths; the default is
|
||||
to allow only \code{'/'} and \code{'/RPC2'}. Setting
|
||||
\member{rpc_paths} to \code{None} or an empty tuple disables
|
||||
this path checking.
|
||||
% Bug #1473048
|
||||
|
||||
\item The \module{socket} module now supports \constant{AF_NETLINK}
|
||||
sockets on Linux, thanks to a patch from Philippe Biondi.
|
||||
Netlink sockets are a Linux-specific mechanism for communications
|
||||
|
@ -2163,6 +2171,13 @@ longer accept a return value of \code{None} from the
|
|||
arguments instead. The modules also no longer accept the deprecated
|
||||
\var{bin} keyword parameter.
|
||||
|
||||
\item Library: The \module{SimpleXMLRPCServer} and \module{DocXMLRPCServer}
|
||||
classes now have a \member{rpc_paths} attribute that constrains
|
||||
XML-RPC operations to a limited set of URL paths; the default is
|
||||
to allow only \code{'/'} and \code{'/RPC2'}. Setting
|
||||
\member{rpc_paths} to \code{None} or an empty tuple disables
|
||||
this path checking.
|
||||
|
||||
\item C API: Many functions now use \ctype{Py_ssize_t}
|
||||
instead of \ctype{int} to allow processing more data on 64-bit
|
||||
machines. Extension code may need to make the same change to avoid
|
||||
|
|
|
@ -8,7 +8,7 @@ extern "C" {
|
|||
/* Dictionary object type -- mapping from hashable object to object */
|
||||
|
||||
/* The distribution includes a separate file, Objects/dictnotes.txt,
|
||||
describing explorations into dictionary design and optimization.
|
||||
describing explorations into dictionary design and optimization.
|
||||
It covers typical dictionary use patterns, the parameters for
|
||||
tuning dictionaries, and several ideas for possible optimizations.
|
||||
*/
|
||||
|
@ -48,7 +48,11 @@ meaning otherwise.
|
|||
#define PyDict_MINSIZE 8
|
||||
|
||||
typedef struct {
|
||||
long me_hash; /* cached hash code of me_key */
|
||||
/* Cached hash code of me_key. Note that hash codes are C longs.
|
||||
* We have to use Py_ssize_t instead because dict_popitem() abuses
|
||||
* me_hash to hold a search finger.
|
||||
*/
|
||||
Py_ssize_t me_hash;
|
||||
PyObject *me_key;
|
||||
PyObject *me_value;
|
||||
} PyDictEntry;
|
||||
|
@ -65,14 +69,14 @@ it's two-thirds full.
|
|||
typedef struct _dictobject PyDictObject;
|
||||
struct _dictobject {
|
||||
PyObject_HEAD
|
||||
int ma_fill; /* # Active + # Dummy */
|
||||
int ma_used; /* # Active */
|
||||
Py_ssize_t ma_fill; /* # Active + # Dummy */
|
||||
Py_ssize_t ma_used; /* # Active */
|
||||
|
||||
/* The table contains ma_mask + 1 slots, and that's a power of 2.
|
||||
* We store the mask instead of the size because the mask is more
|
||||
* frequently needed.
|
||||
*/
|
||||
int ma_mask;
|
||||
Py_ssize_t ma_mask;
|
||||
|
||||
/* ma_table points to ma_smalltable for small tables, else to
|
||||
* additional malloc'ed memory. ma_table is never NULL! This rule
|
||||
|
|
|
@ -174,6 +174,27 @@ typedef Py_intptr_t Py_ssize_t;
|
|||
#define Py_LOCAL_INLINE(type) static type
|
||||
#endif
|
||||
|
||||
/* Py_MEMCPY can be used instead of memcpy in cases where the copied blocks
|
||||
* are often very short. While most platforms have highly optimized code for
|
||||
* large transfers, the setup costs for memcpy are often quite high. MEMCPY
|
||||
* solves this by doing short copies "in line".
|
||||
*/
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define Py_MEMCPY(target, source, length) do { \
|
||||
size_t i_, n_ = (length); \
|
||||
char *t_ = (void*) (target); \
|
||||
const char *s_ = (void*) (source); \
|
||||
if (n_ >= 16) \
|
||||
memcpy(t_, s_, n_); \
|
||||
else \
|
||||
for (i_ = 0; i_ < n_; i_++) \
|
||||
t_[i_] = s_[i_]; \
|
||||
} while (0)
|
||||
#else
|
||||
#define Py_MEMCPY memcpy
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <math.h> /* Moved here from the math section, before extern "C" */
|
||||
|
|
|
@ -357,15 +357,8 @@ typedef PY_UNICODE_TYPE Py_UNICODE;
|
|||
Py_UNICODE_ISDIGIT(ch) || \
|
||||
Py_UNICODE_ISNUMERIC(ch))
|
||||
|
||||
/* memcpy has a considerable setup overhead on many platforms; use a
|
||||
loop for short strings (the "16" below is pretty arbitary) */
|
||||
#define Py_UNICODE_COPY(target, source, length) do\
|
||||
{Py_ssize_t i_; Py_UNICODE *t_ = (target); const Py_UNICODE *s_ = (source);\
|
||||
if (length > 16)\
|
||||
memcpy(t_, s_, (length)*sizeof(Py_UNICODE));\
|
||||
else\
|
||||
for (i_ = 0; i_ < (length); i_++) t_[i_] = s_[i_];\
|
||||
} while (0)
|
||||
#define Py_UNICODE_COPY(target, source, length) \
|
||||
Py_MEMCPY((target), (source), (length)*sizeof(Py_UNICODE))
|
||||
|
||||
#define Py_UNICODE_FILL(target, value, length) do\
|
||||
{Py_ssize_t i_; Py_UNICODE *t_ = (target); Py_UNICODE v_ = (value);\
|
||||
|
|
|
@ -227,6 +227,10 @@ class DocXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
|||
Interpret all HTTP GET requests as requests for server
|
||||
documentation.
|
||||
"""
|
||||
# Check that the path is legal
|
||||
if not self.is_rpc_path_valid():
|
||||
self.report_404()
|
||||
return
|
||||
|
||||
response = self.server.generate_html_documentation()
|
||||
self.send_response(200)
|
||||
|
|
|
@ -247,10 +247,10 @@ class SimpleXMLRPCDispatcher:
|
|||
of changing method dispatch behavior.
|
||||
"""
|
||||
|
||||
params, method = xmlrpclib.loads(data)
|
||||
|
||||
# generate response
|
||||
try:
|
||||
params, method = xmlrpclib.loads(data)
|
||||
|
||||
# generate response
|
||||
if dispatch_method is not None:
|
||||
response = dispatch_method(method, params)
|
||||
else:
|
||||
|
@ -423,6 +423,17 @@ class SimpleXMLRPCRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
|||
XML-RPC requests.
|
||||
"""
|
||||
|
||||
# Class attribute listing the accessible path components;
|
||||
# paths not on this list will result in a 404 error.
|
||||
rpc_paths = ('/', '/RPC2')
|
||||
|
||||
def is_rpc_path_valid(self):
|
||||
if self.rpc_paths:
|
||||
return self.path in self.rpc_paths
|
||||
else:
|
||||
# If .rpc_paths is empty, just assume all paths are legal
|
||||
return True
|
||||
|
||||
def do_POST(self):
|
||||
"""Handles the HTTP POST request.
|
||||
|
||||
|
@ -430,6 +441,11 @@ class SimpleXMLRPCRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
|||
which are forwarded to the server's _dispatch method for handling.
|
||||
"""
|
||||
|
||||
# Check that the path is legal
|
||||
if not self.is_rpc_path_valid():
|
||||
self.report_404()
|
||||
return
|
||||
|
||||
try:
|
||||
# Get arguments by reading body of request.
|
||||
# We read this in chunks to avoid straining
|
||||
|
@ -468,6 +484,18 @@ class SimpleXMLRPCRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
|||
self.wfile.flush()
|
||||
self.connection.shutdown(1)
|
||||
|
||||
def report_404 (self):
|
||||
# Report a 404 error
|
||||
self.send_response(404)
|
||||
response = 'No such page'
|
||||
self.send_header("Content-type", "text/plain")
|
||||
self.send_header("Content-length", str(len(response)))
|
||||
self.end_headers()
|
||||
self.wfile.write(response)
|
||||
# shut down the connection
|
||||
self.wfile.flush()
|
||||
self.connection.shutdown(1)
|
||||
|
||||
def log_request(self, code='-', size='-'):
|
||||
"""Selectively log an accepted request."""
|
||||
|
||||
|
|
|
@ -201,6 +201,8 @@ def _write_long(f, x):
|
|||
f.write(struct.pack('>L', x))
|
||||
|
||||
def _write_string(f, s):
|
||||
if len(s) > 255:
|
||||
raise ValueError("string exceeds maximum pstring length")
|
||||
f.write(chr(len(s)))
|
||||
f.write(s)
|
||||
if len(s) & 1 == 0:
|
||||
|
|
|
@ -126,7 +126,9 @@ _b32alphabet = {
|
|||
8: 'I', 17: 'R', 26: '2',
|
||||
}
|
||||
|
||||
_b32tab = [v for v in _b32alphabet.values()]
|
||||
_b32tab = _b32alphabet.items()
|
||||
_b32tab.sort()
|
||||
_b32tab = [v for k, v in _b32tab]
|
||||
_b32rev = dict([(v, long(k)) for k, v in _b32alphabet.items()])
|
||||
|
||||
|
||||
|
|
|
@ -1056,12 +1056,13 @@ class DocTestRunner:
|
|||
|
||||
>>> tests = DocTestFinder().find(_TestClass)
|
||||
>>> runner = DocTestRunner(verbose=False)
|
||||
>>> tests.sort(key = lambda test: test.name)
|
||||
>>> for test in tests:
|
||||
... print runner.run(test)
|
||||
(0, 2)
|
||||
(0, 1)
|
||||
(0, 2)
|
||||
(0, 2)
|
||||
... print test.name, '->', runner.run(test)
|
||||
_TestClass -> (0, 2)
|
||||
_TestClass.__init__ -> (0, 2)
|
||||
_TestClass.get -> (0, 2)
|
||||
_TestClass.square -> (0, 1)
|
||||
|
||||
The `summarize` method prints a summary of all the test cases that
|
||||
have been run by the runner, and returns an aggregated `(f, t)`
|
||||
|
@ -1869,7 +1870,8 @@ def testmod(m=None, name=None, globs=None, verbose=None, isprivate=None,
|
|||
|
||||
def testfile(filename, module_relative=True, name=None, package=None,
|
||||
globs=None, verbose=None, report=True, optionflags=0,
|
||||
extraglobs=None, raise_on_error=False, parser=DocTestParser()):
|
||||
extraglobs=None, raise_on_error=False, parser=DocTestParser(),
|
||||
encoding=None):
|
||||
"""
|
||||
Test examples in the given file. Return (#failures, #tests).
|
||||
|
||||
|
@ -1935,6 +1937,9 @@ def testfile(filename, module_relative=True, name=None, package=None,
|
|||
Optional keyword arg "parser" specifies a DocTestParser (or
|
||||
subclass) that should be used to extract tests from the files.
|
||||
|
||||
Optional keyword arg "encoding" specifies an encoding that should
|
||||
be used to convert the file to unicode.
|
||||
|
||||
Advanced tomfoolery: testmod runs methods of a local instance of
|
||||
class doctest.Tester, then merges the results into (or creates)
|
||||
global Tester instance doctest.master. Methods of doctest.master
|
||||
|
@ -1969,6 +1974,9 @@ def testfile(filename, module_relative=True, name=None, package=None,
|
|||
else:
|
||||
runner = DocTestRunner(verbose=verbose, optionflags=optionflags)
|
||||
|
||||
if encoding is not None:
|
||||
text = text.decode(encoding)
|
||||
|
||||
# Read the file, convert it to a test, and run it.
|
||||
test = parser.get_doctest(text, globs, name, filename, 0)
|
||||
runner.run(test)
|
||||
|
@ -2339,7 +2347,8 @@ class DocFileCase(DocTestCase):
|
|||
)
|
||||
|
||||
def DocFileTest(path, module_relative=True, package=None,
|
||||
globs=None, parser=DocTestParser(), **options):
|
||||
globs=None, parser=DocTestParser(),
|
||||
encoding=None, **options):
|
||||
if globs is None:
|
||||
globs = {}
|
||||
else:
|
||||
|
@ -2358,6 +2367,10 @@ def DocFileTest(path, module_relative=True, package=None,
|
|||
# Find the file and read it.
|
||||
name = os.path.basename(path)
|
||||
|
||||
# If an encoding is specified, use it to convert the file to unicode
|
||||
if encoding is not None:
|
||||
doc = doc.decode(encoding)
|
||||
|
||||
# Convert it to a test, and wrap it in a DocFileCase.
|
||||
test = parser.get_doctest(doc, globs, name, path, 0)
|
||||
return DocFileCase(test, **options)
|
||||
|
@ -2414,6 +2427,9 @@ def DocFileSuite(*paths, **kw):
|
|||
parser
|
||||
A DocTestParser (or subclass) that should be used to extract
|
||||
tests from the files.
|
||||
|
||||
encoding
|
||||
An encoding that will be used to convert the files to unicode.
|
||||
"""
|
||||
suite = unittest.TestSuite()
|
||||
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
"""functools.py - Tools for working with functions
|
||||
"""
|
||||
# Python module wrapper for _functools C module
|
||||
# to allow utilities written in Python to be added
|
||||
# to the functools module.
|
||||
# Written by Nick Coghlan <ncoghlan at gmail.com>
|
||||
# Copyright (c) 2006 Python Software Foundation.
|
||||
|
||||
from _functools import partial
|
||||
__all__ = [
|
||||
"partial",
|
||||
]
|
||||
|
||||
# Still to come here (need to write tests and docs):
|
||||
# update_wrapper - utility function to transfer basic function
|
||||
# metadata to wrapper functions
|
||||
# WRAPPER_ASSIGNMENTS & WRAPPER_UPDATES - defaults args to above
|
||||
# (update_wrapper has been approved by BDFL)
|
||||
# wraps - decorator factory equivalent to:
|
||||
# def wraps(f):
|
||||
# return partial(update_wrapper, wrapped=f)
|
||||
#
|
||||
# The wraps function makes it easy to avoid the bug that afflicts the
|
||||
# decorator example in the python-dev email proposing the
|
||||
# update_wrapper function:
|
||||
# http://mail.python.org/pipermail/python-dev/2006-May/064775.html
|
|
@ -611,8 +611,10 @@ class Option:
|
|||
else:
|
||||
setattr(self, attr, None)
|
||||
if attrs:
|
||||
attrs = attrs.keys()
|
||||
attrs.sort()
|
||||
raise OptionError(
|
||||
"invalid keyword arguments: %s" % ", ".join(attrs.keys()),
|
||||
"invalid keyword arguments: %s" % ", ".join(attrs),
|
||||
self)
|
||||
|
||||
|
||||
|
@ -1661,6 +1663,7 @@ def _match_abbrev(s, wordmap):
|
|||
raise BadOptionError(s)
|
||||
else:
|
||||
# More than one possible completion: ambiguous prefix.
|
||||
possibilities.sort()
|
||||
raise AmbiguousOptionError(s, possibilities)
|
||||
|
||||
|
||||
|
|
|
@ -246,7 +246,7 @@ def _safe_repr(object, context, maxlevels, level):
|
|||
append = components.append
|
||||
level += 1
|
||||
saferepr = _safe_repr
|
||||
for k, v in object.iteritems():
|
||||
for k, v in sorted(object.items()):
|
||||
krepr, kreadable, krecur = saferepr(k, context, maxlevels, level)
|
||||
vrepr, vreadable, vrecur = saferepr(v, context, maxlevels, level)
|
||||
append("%s: %s" % (krepr, vrepr))
|
||||
|
|
|
@ -42,7 +42,7 @@ Instances of this class have the following instance variables:
|
|||
import sys
|
||||
import imp
|
||||
import tokenize # Python tokenizer
|
||||
from token import NAME, DEDENT, NEWLINE
|
||||
from token import NAME, DEDENT, NEWLINE, OP
|
||||
from operator import itemgetter
|
||||
|
||||
__all__ = ["readmodule", "readmodule_ex", "Class", "Function"]
|
||||
|
@ -219,8 +219,10 @@ def _readmodule(module, path, inpackage=None):
|
|||
break
|
||||
elif token == ',' and level == 1:
|
||||
pass
|
||||
else:
|
||||
# only use NAME and OP (== dot) tokens for type name
|
||||
elif tokentype in (NAME, OP) and level == 1:
|
||||
super.append(token)
|
||||
# expressions in the base list are not supported
|
||||
inherit = names
|
||||
cur_class = Class(fullmodule, class_name, inherit, file, lineno)
|
||||
if not stack:
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
# http://www.python.org/sf/1456209
|
||||
|
||||
# A dictresize() attack. If oldtable == mp->ma_smalltable then pure
|
||||
# Python code can mangle with mp->ma_smalltable while it is being walked
|
||||
# over.
|
||||
|
||||
class X(object):
|
||||
|
||||
def __hash__(self):
|
||||
return 5
|
||||
|
||||
def __eq__(self, other):
|
||||
if resizing:
|
||||
d.clear()
|
||||
return False
|
||||
|
||||
|
||||
d = {}
|
||||
|
||||
resizing = False
|
||||
|
||||
d[X()] = 1
|
||||
d[X()] = 2
|
||||
d[X()] = 3
|
||||
d[X()] = 4
|
||||
d[X()] = 5
|
||||
|
||||
# now trigger a resize
|
||||
resizing = True
|
||||
d[9] = 6
|
||||
|
||||
# ^^^ I get Segmentation fault or Illegal instruction here.
|
|
@ -1,52 +0,0 @@
|
|||
test_exceptions
|
||||
5. Built-in exceptions
|
||||
spam
|
||||
AttributeError
|
||||
spam
|
||||
EOFError
|
||||
spam
|
||||
IOError
|
||||
spam
|
||||
ImportError
|
||||
spam
|
||||
IndexError
|
||||
'spam'
|
||||
KeyError
|
||||
spam
|
||||
KeyboardInterrupt
|
||||
(not testable in a script)
|
||||
spam
|
||||
MemoryError
|
||||
(not safe to test)
|
||||
spam
|
||||
NameError
|
||||
spam
|
||||
OverflowError
|
||||
spam
|
||||
RuntimeError
|
||||
(not used any more?)
|
||||
spam
|
||||
SyntaxError
|
||||
'continue' not supported inside 'finally' clause
|
||||
ok
|
||||
'continue' not properly in loop
|
||||
ok
|
||||
'continue' not properly in loop
|
||||
ok
|
||||
spam
|
||||
IndentationError
|
||||
spam
|
||||
TabError
|
||||
spam
|
||||
SystemError
|
||||
(hard to reproduce)
|
||||
spam
|
||||
SystemExit
|
||||
spam
|
||||
TypeError
|
||||
spam
|
||||
ValueError
|
||||
spam
|
||||
ZeroDivisionError
|
||||
spam
|
||||
Exception
|
|
@ -1,6 +1,21 @@
|
|||
test_operations
|
||||
3. Operations
|
||||
XXX Mostly not yet implemented
|
||||
3.1 Dictionary lookups succeed even if __cmp__() raises an exception
|
||||
3.1 Dictionary lookups fail if __cmp__() raises an exception
|
||||
raising error
|
||||
No exception passed through.
|
||||
d[x2] = 2: caught the RuntimeError outside
|
||||
raising error
|
||||
z = d[x2]: caught the RuntimeError outside
|
||||
raising error
|
||||
x2 in d: caught the RuntimeError outside
|
||||
raising error
|
||||
d.has_key(x2): caught the RuntimeError outside
|
||||
raising error
|
||||
d.get(x2): caught the RuntimeError outside
|
||||
raising error
|
||||
d.setdefault(x2, 42): caught the RuntimeError outside
|
||||
raising error
|
||||
d.pop(x2): caught the RuntimeError outside
|
||||
raising error
|
||||
d.update({x2: 2}): caught the RuntimeError outside
|
||||
resize bugs not triggered.
|
||||
|
|
|
@ -513,6 +513,9 @@ def runtest(test, generate, verbose, quiet, testdir=None, huntrleaks=False):
|
|||
else:
|
||||
cfp = cStringIO.StringIO()
|
||||
if huntrleaks:
|
||||
if not hasattr(sys, 'gettotalrefcount'):
|
||||
raise Exception("Tracking reference leaks requires a debug build "
|
||||
"of Python")
|
||||
refrep = open(huntrleaks[2], "a")
|
||||
try:
|
||||
save_stdout = sys.stdout
|
||||
|
|
|
@ -106,10 +106,19 @@ class CommonTest(unittest.TestCase):
|
|||
self.checkequal(3, 'aaa', 'count', 'a')
|
||||
self.checkequal(0, 'aaa', 'count', 'b')
|
||||
self.checkequal(0, 'aaa', 'count', 'b')
|
||||
self.checkequal(2, 'aaa', 'count', 'a', 1)
|
||||
self.checkequal(0, 'aaa', 'count', 'a', 10)
|
||||
self.checkequal(1, 'aaa', 'count', 'a', -1)
|
||||
self.checkequal(3, 'aaa', 'count', 'a', -10)
|
||||
self.checkequal(1, 'aaa', 'count', 'a', 0, 1)
|
||||
self.checkequal(3, 'aaa', 'count', 'a', 0, 10)
|
||||
self.checkequal(2, 'aaa', 'count', 'a', 0, -1)
|
||||
self.checkequal(0, 'aaa', 'count', 'a', 0, -10)
|
||||
self.checkequal(3, 'aaa', 'count', '', 1)
|
||||
self.checkequal(1, 'aaa', 'count', '', 3)
|
||||
self.checkequal(0, 'aaa', 'count', '', 10)
|
||||
self.checkequal(2, 'aaa', 'count', '', -1)
|
||||
self.checkequal(4, 'aaa', 'count', '', -10)
|
||||
|
||||
self.checkraises(TypeError, 'hello', 'count')
|
||||
self.checkraises(TypeError, 'hello', 'count', 42)
|
||||
|
@ -146,6 +155,10 @@ class CommonTest(unittest.TestCase):
|
|||
self.checkequal(9, 'abcdefghiabc', 'find', 'abc', 1)
|
||||
self.checkequal(-1, 'abcdefghiabc', 'find', 'def', 4)
|
||||
|
||||
self.checkequal(0, 'abc', 'find', '', 0)
|
||||
self.checkequal(3, 'abc', 'find', '', 3)
|
||||
self.checkequal(-1, 'abc', 'find', '', 4)
|
||||
|
||||
self.checkraises(TypeError, 'hello', 'find')
|
||||
self.checkraises(TypeError, 'hello', 'find', 42)
|
||||
|
||||
|
@ -180,6 +193,10 @@ class CommonTest(unittest.TestCase):
|
|||
self.checkequal(0, 'abcdefghiabc', 'rfind', 'abcd')
|
||||
self.checkequal(-1, 'abcdefghiabc', 'rfind', 'abcz')
|
||||
|
||||
self.checkequal(3, 'abc', 'rfind', '', 0)
|
||||
self.checkequal(3, 'abc', 'rfind', '', 3)
|
||||
self.checkequal(-1, 'abc', 'rfind', '', 4)
|
||||
|
||||
self.checkraises(TypeError, 'hello', 'rfind')
|
||||
self.checkraises(TypeError, 'hello', 'rfind', 42)
|
||||
|
||||
|
@ -477,12 +494,7 @@ class CommonTest(unittest.TestCase):
|
|||
|
||||
# Operations on the empty string
|
||||
EQ("", "", "replace", "", "")
|
||||
|
||||
#EQ("A", "", "replace", "", "A")
|
||||
# That was the correct result; this is the result we actually get
|
||||
# now (for str, but not for unicode):
|
||||
#EQ("", "", "replace", "", "A")
|
||||
|
||||
EQ("A", "", "replace", "", "A")
|
||||
EQ("", "", "replace", "A", "")
|
||||
EQ("", "", "replace", "A", "A")
|
||||
EQ("", "", "replace", "", "", 100)
|
||||
|
|
|
@ -875,7 +875,10 @@ Stonecutters Seafood and Chop House, Lemont, IL, 12/19/02, Week Back
|
|||
def test_delimiters(self):
|
||||
sniffer = csv.Sniffer()
|
||||
dialect = sniffer.sniff(self.sample3)
|
||||
self.assertEqual(dialect.delimiter, "0")
|
||||
# given that all three lines in sample3 are equal,
|
||||
# I think that any character could have been 'guessed' as the
|
||||
# delimiter, depending on dictionary order
|
||||
self.assert_(dialect.delimiter in self.sample3)
|
||||
dialect = sniffer.sniff(self.sample3, delimiters="?,")
|
||||
self.assertEqual(dialect.delimiter, "?")
|
||||
dialect = sniffer.sniff(self.sample3, delimiters="/,")
|
||||
|
|
|
@ -1937,9 +1937,10 @@ def test_DocFileSuite():
|
|||
|
||||
>>> import unittest
|
||||
>>> suite = doctest.DocFileSuite('test_doctest.txt',
|
||||
... 'test_doctest2.txt')
|
||||
... 'test_doctest2.txt',
|
||||
... 'test_doctest4.txt')
|
||||
>>> suite.run(unittest.TestResult())
|
||||
<unittest.TestResult run=2 errors=0 failures=2>
|
||||
<unittest.TestResult run=3 errors=0 failures=3>
|
||||
|
||||
The test files are looked for in the directory containing the
|
||||
calling module. A package keyword argument can be provided to
|
||||
|
@ -1948,9 +1949,10 @@ def test_DocFileSuite():
|
|||
>>> import unittest
|
||||
>>> suite = doctest.DocFileSuite('test_doctest.txt',
|
||||
... 'test_doctest2.txt',
|
||||
... 'test_doctest4.txt',
|
||||
... package='test')
|
||||
>>> suite.run(unittest.TestResult())
|
||||
<unittest.TestResult run=2 errors=0 failures=2>
|
||||
<unittest.TestResult run=3 errors=0 failures=3>
|
||||
|
||||
'/' should be used as a path separator. It will be converted
|
||||
to a native separator at run time:
|
||||
|
@ -1995,19 +1997,21 @@ def test_DocFileSuite():
|
|||
|
||||
>>> suite = doctest.DocFileSuite('test_doctest.txt',
|
||||
... 'test_doctest2.txt',
|
||||
... 'test_doctest4.txt',
|
||||
... globs={'favorite_color': 'blue'})
|
||||
>>> suite.run(unittest.TestResult())
|
||||
<unittest.TestResult run=2 errors=0 failures=1>
|
||||
<unittest.TestResult run=3 errors=0 failures=2>
|
||||
|
||||
In this case, we supplied a missing favorite color. You can
|
||||
provide doctest options:
|
||||
|
||||
>>> suite = doctest.DocFileSuite('test_doctest.txt',
|
||||
... 'test_doctest2.txt',
|
||||
... 'test_doctest4.txt',
|
||||
... optionflags=doctest.DONT_ACCEPT_BLANKLINE,
|
||||
... globs={'favorite_color': 'blue'})
|
||||
>>> suite.run(unittest.TestResult())
|
||||
<unittest.TestResult run=2 errors=0 failures=2>
|
||||
<unittest.TestResult run=3 errors=0 failures=3>
|
||||
|
||||
And, you can provide setUp and tearDown functions:
|
||||
|
||||
|
@ -2025,9 +2029,10 @@ def test_DocFileSuite():
|
|||
|
||||
>>> suite = doctest.DocFileSuite('test_doctest.txt',
|
||||
... 'test_doctest2.txt',
|
||||
... 'test_doctest4.txt',
|
||||
... setUp=setUp, tearDown=tearDown)
|
||||
>>> suite.run(unittest.TestResult())
|
||||
<unittest.TestResult run=2 errors=0 failures=1>
|
||||
<unittest.TestResult run=3 errors=0 failures=2>
|
||||
|
||||
But the tearDown restores sanity:
|
||||
|
||||
|
@ -2060,6 +2065,17 @@ def test_DocFileSuite():
|
|||
>>> suite.run(unittest.TestResult())
|
||||
<unittest.TestResult run=1 errors=0 failures=0>
|
||||
|
||||
If the tests contain non-ASCII characters, we have to specify which
|
||||
encoding the file is encoded with. We do so by using the `encoding`
|
||||
parameter:
|
||||
|
||||
>>> suite = doctest.DocFileSuite('test_doctest.txt',
|
||||
... 'test_doctest2.txt',
|
||||
... 'test_doctest4.txt',
|
||||
... encoding='utf-8')
|
||||
>>> suite.run(unittest.TestResult())
|
||||
<unittest.TestResult run=3 errors=0 failures=2>
|
||||
|
||||
"""
|
||||
|
||||
def test_trailing_space_in_test():
|
||||
|
@ -2266,6 +2282,32 @@ debugging):
|
|||
Traceback (most recent call last):
|
||||
UnexpectedException: ...
|
||||
>>> doctest.master = None # Reset master.
|
||||
|
||||
If the tests contain non-ASCII characters, the tests might fail, since
|
||||
it's unknown which encoding is used. The encoding can be specified
|
||||
using the optional keyword argument `encoding`:
|
||||
|
||||
>>> doctest.testfile('test_doctest4.txt') # doctest: +ELLIPSIS
|
||||
**********************************************************************
|
||||
File "...", line 7, in test_doctest4.txt
|
||||
Failed example:
|
||||
u'...'
|
||||
Expected:
|
||||
u'f\xf6\xf6'
|
||||
Got:
|
||||
u'f\xc3\xb6\xc3\xb6'
|
||||
**********************************************************************
|
||||
...
|
||||
**********************************************************************
|
||||
1 items had failures:
|
||||
2 of 4 in test_doctest4.txt
|
||||
***Test Failed*** 2 failures.
|
||||
(2, 4)
|
||||
>>> doctest.master = None # Reset master.
|
||||
|
||||
>>> doctest.testfile('test_doctest4.txt', encoding='utf-8')
|
||||
(0, 4)
|
||||
>>> doctest.master = None # Reset master.
|
||||
"""
|
||||
|
||||
# old_test1, ... used to live in doctest.py, but cluttered it. Note
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
This is a sample doctest in a text file that contains non-ASCII characters.
|
||||
This file is encoded using UTF-8.
|
||||
|
||||
In order to get this test to pass, we have to manually specify the
|
||||
encoding.
|
||||
|
||||
>>> u'föö'
|
||||
u'f\xf6\xf6'
|
||||
|
||||
>>> u'bąr'
|
||||
u'b\u0105r'
|
||||
|
||||
>>> 'föö'
|
||||
'f\xc3\xb6\xc3\xb6'
|
||||
|
||||
>>> 'bąr'
|
||||
'b\xc4\x85r'
|
|
@ -1,303 +1,310 @@
|
|||
# Python test set -- part 5, built-in exceptions
|
||||
|
||||
from test.test_support import TestFailed, TESTFN, unlink
|
||||
from types import ClassType
|
||||
from test.test_support import TESTFN, unlink, run_unittest
|
||||
import warnings
|
||||
import sys, traceback, os
|
||||
import unittest
|
||||
|
||||
print '5. Built-in exceptions'
|
||||
# XXX This is not really enough, each *operation* should be tested!
|
||||
|
||||
# Reloading the built-in exceptions module failed prior to Py2.2, while it
|
||||
# should act the same as reloading built-in sys.
|
||||
try:
|
||||
import exceptions
|
||||
reload(exceptions)
|
||||
except ImportError, e:
|
||||
raise TestFailed, e
|
||||
class ExceptionTests(unittest.TestCase):
|
||||
|
||||
def test_raise_catch(exc):
|
||||
try:
|
||||
raise exc, "spam"
|
||||
except exc, err:
|
||||
buf = str(err)
|
||||
try:
|
||||
raise exc("spam")
|
||||
except exc, err:
|
||||
buf = str(err)
|
||||
print buf
|
||||
def testReload(self):
|
||||
# Reloading the built-in exceptions module failed prior to Py2.2, while it
|
||||
# should act the same as reloading built-in sys.
|
||||
try:
|
||||
import exceptions
|
||||
reload(exceptions)
|
||||
except ImportError, e:
|
||||
self.fail("reloading exceptions: %s" % e)
|
||||
|
||||
def r(thing):
|
||||
test_raise_catch(thing)
|
||||
print getattr(thing, '__name__', thing)
|
||||
def raise_catch(self, exc, excname):
|
||||
try:
|
||||
raise exc, "spam"
|
||||
except exc, err:
|
||||
buf1 = str(err)
|
||||
try:
|
||||
raise exc("spam")
|
||||
except exc, err:
|
||||
buf2 = str(err)
|
||||
self.assertEquals(buf1, buf2)
|
||||
self.assertEquals(exc.__name__, excname)
|
||||
|
||||
r(AttributeError)
|
||||
import sys
|
||||
try: x = sys.undefined_attribute
|
||||
except AttributeError: pass
|
||||
def testRaising(self):
|
||||
self.raise_catch(AttributeError, "AttributeError")
|
||||
self.assertRaises(AttributeError, getattr, sys, "undefined_attribute")
|
||||
|
||||
r(EOFError)
|
||||
import sys
|
||||
fp = open(TESTFN, 'w')
|
||||
fp.close()
|
||||
fp = open(TESTFN, 'r')
|
||||
savestdin = sys.stdin
|
||||
try:
|
||||
try:
|
||||
import marshal
|
||||
marshal.loads('')
|
||||
except EOFError:
|
||||
pass
|
||||
finally:
|
||||
sys.stdin = savestdin
|
||||
fp.close()
|
||||
self.raise_catch(EOFError, "EOFError")
|
||||
fp = open(TESTFN, 'w')
|
||||
fp.close()
|
||||
fp = open(TESTFN, 'r')
|
||||
savestdin = sys.stdin
|
||||
try:
|
||||
try:
|
||||
import marshal
|
||||
marshal.loads('')
|
||||
except EOFError:
|
||||
pass
|
||||
finally:
|
||||
sys.stdin = savestdin
|
||||
fp.close()
|
||||
unlink(TESTFN)
|
||||
|
||||
r(IOError)
|
||||
try: open('this file does not exist', 'r')
|
||||
except IOError: pass
|
||||
self.raise_catch(IOError, "IOError")
|
||||
self.assertRaises(IOError, open, 'this file does not exist', 'r')
|
||||
|
||||
r(ImportError)
|
||||
try: import undefined_module
|
||||
except ImportError: pass
|
||||
self.raise_catch(ImportError, "ImportError")
|
||||
self.assertRaises(ImportError, __import__, "undefined_module")
|
||||
|
||||
r(IndexError)
|
||||
x = []
|
||||
try: a = x[10]
|
||||
except IndexError: pass
|
||||
self.raise_catch(IndexError, "IndexError")
|
||||
x = []
|
||||
self.assertRaises(IndexError, x.__getitem__, 10)
|
||||
|
||||
r(KeyError)
|
||||
x = {}
|
||||
try: a = x['key']
|
||||
except KeyError: pass
|
||||
self.raise_catch(KeyError, "KeyError")
|
||||
x = {}
|
||||
self.assertRaises(KeyError, x.__getitem__, 'key')
|
||||
|
||||
r(KeyboardInterrupt)
|
||||
print '(not testable in a script)'
|
||||
self.raise_catch(KeyboardInterrupt, "KeyboardInterrupt")
|
||||
|
||||
r(MemoryError)
|
||||
print '(not safe to test)'
|
||||
self.raise_catch(MemoryError, "MemoryError")
|
||||
|
||||
r(NameError)
|
||||
try: x = undefined_variable
|
||||
except NameError: pass
|
||||
self.raise_catch(NameError, "NameError")
|
||||
try: x = undefined_variable
|
||||
except NameError: pass
|
||||
|
||||
r(OverflowError)
|
||||
x = 1
|
||||
for dummy in range(128):
|
||||
x += x # this simply shouldn't blow up
|
||||
self.raise_catch(OverflowError, "OverflowError")
|
||||
x = 1
|
||||
for dummy in range(128):
|
||||
x += x # this simply shouldn't blow up
|
||||
|
||||
r(RuntimeError)
|
||||
print '(not used any more?)'
|
||||
self.raise_catch(RuntimeError, "RuntimeError")
|
||||
|
||||
r(SyntaxError)
|
||||
try: exec '/\n'
|
||||
except SyntaxError: pass
|
||||
self.raise_catch(SyntaxError, "SyntaxError")
|
||||
try: exec '/\n'
|
||||
except SyntaxError: pass
|
||||
|
||||
# make sure the right exception message is raised for each of these
|
||||
# code fragments:
|
||||
self.raise_catch(IndentationError, "IndentationError")
|
||||
|
||||
def ckmsg(src, msg):
|
||||
try:
|
||||
compile(src, '<fragment>', 'exec')
|
||||
except SyntaxError, e:
|
||||
print e.msg
|
||||
if e.msg == msg:
|
||||
print "ok"
|
||||
else:
|
||||
print "expected:", msg
|
||||
else:
|
||||
print "failed to get expected SyntaxError"
|
||||
self.raise_catch(TabError, "TabError")
|
||||
# can only be tested under -tt, and is the only test for -tt
|
||||
#try: compile("try:\n\t1/0\n \t1/0\nfinally:\n pass\n", '<string>', 'exec')
|
||||
#except TabError: pass
|
||||
#else: self.fail("TabError not raised")
|
||||
|
||||
s = '''\
|
||||
while 1:
|
||||
try:
|
||||
pass
|
||||
finally:
|
||||
continue
|
||||
'''
|
||||
if sys.platform.startswith('java'):
|
||||
print "'continue' not supported inside 'finally' clause"
|
||||
print "ok"
|
||||
else:
|
||||
ckmsg(s, "'continue' not supported inside 'finally' clause")
|
||||
s = '''\
|
||||
try:
|
||||
continue
|
||||
except:
|
||||
pass
|
||||
'''
|
||||
ckmsg(s, "'continue' not properly in loop")
|
||||
ckmsg("continue\n", "'continue' not properly in loop")
|
||||
self.raise_catch(SystemError, "SystemError")
|
||||
|
||||
r(IndentationError)
|
||||
self.raise_catch(SystemExit, "SystemExit")
|
||||
self.assertRaises(SystemExit, sys.exit, 0)
|
||||
|
||||
r(TabError)
|
||||
# can only be tested under -tt, and is the only test for -tt
|
||||
#try: compile("try:\n\t1/0\n \t1/0\nfinally:\n pass\n", '<string>', 'exec')
|
||||
#except TabError: pass
|
||||
#else: raise TestFailed
|
||||
self.raise_catch(TypeError, "TypeError")
|
||||
try: [] + ()
|
||||
except TypeError: pass
|
||||
|
||||
r(SystemError)
|
||||
print '(hard to reproduce)'
|
||||
self.raise_catch(ValueError, "ValueError")
|
||||
self.assertRaises(ValueError, chr, 10000)
|
||||
|
||||
r(SystemExit)
|
||||
import sys
|
||||
try: sys.exit(0)
|
||||
except SystemExit: pass
|
||||
self.raise_catch(ZeroDivisionError, "ZeroDivisionError")
|
||||
try: x = 1/0
|
||||
except ZeroDivisionError: pass
|
||||
|
||||
r(TypeError)
|
||||
try: [] + ()
|
||||
except TypeError: pass
|
||||
self.raise_catch(Exception, "Exception")
|
||||
try: x = 1/0
|
||||
except Exception, e: pass
|
||||
|
||||
r(ValueError)
|
||||
try: x = chr(10000)
|
||||
except ValueError: pass
|
||||
def testSyntaxErrorMessage(self):
|
||||
# make sure the right exception message is raised for each of
|
||||
# these code fragments
|
||||
|
||||
r(ZeroDivisionError)
|
||||
try: x = 1/0
|
||||
except ZeroDivisionError: pass
|
||||
def ckmsg(src, msg):
|
||||
try:
|
||||
compile(src, '<fragment>', 'exec')
|
||||
except SyntaxError, e:
|
||||
if e.msg != msg:
|
||||
self.fail("expected %s, got %s" % (msg, e.msg))
|
||||
else:
|
||||
self.fail("failed to get expected SyntaxError")
|
||||
|
||||
r(Exception)
|
||||
try: x = 1/0
|
||||
except Exception, e: pass
|
||||
s = '''while 1:
|
||||
try:
|
||||
pass
|
||||
finally:
|
||||
continue'''
|
||||
|
||||
# test that setting an exception at the C level works even if the
|
||||
# exception object can't be constructed.
|
||||
if not sys.platform.startswith('java'):
|
||||
ckmsg(s, "'continue' not supported inside 'finally' clause")
|
||||
|
||||
class BadException(Exception):
|
||||
def __init__(self):
|
||||
raise RuntimeError, "can't instantiate BadException"
|
||||
s = '''if 1:
|
||||
try:
|
||||
continue
|
||||
except:
|
||||
pass'''
|
||||
|
||||
# Exceptions must inherit from BaseException, raising invalid exception
|
||||
# should instead raise SystemError
|
||||
class InvalidException:
|
||||
pass
|
||||
ckmsg(s, "'continue' not properly in loop")
|
||||
ckmsg("continue\n", "'continue' not properly in loop")
|
||||
|
||||
def test_capi1():
|
||||
import _testcapi
|
||||
try:
|
||||
_testcapi.raise_exception(BadException, 1)
|
||||
except TypeError, err:
|
||||
exc, err, tb = sys.exc_info()
|
||||
co = tb.tb_frame.f_code
|
||||
assert co.co_name == "test_capi1"
|
||||
assert co.co_filename.endswith('test_exceptions'+os.extsep+'py')
|
||||
else:
|
||||
print "Expected exception"
|
||||
def testSettingException(self):
|
||||
# test that setting an exception at the C level works even if the
|
||||
# exception object can't be constructed.
|
||||
|
||||
def test_capi2():
|
||||
import _testcapi
|
||||
try:
|
||||
_testcapi.raise_exception(BadException, 0)
|
||||
except RuntimeError, err:
|
||||
exc, err, tb = sys.exc_info()
|
||||
co = tb.tb_frame.f_code
|
||||
assert co.co_name == "__init__"
|
||||
assert co.co_filename.endswith('test_exceptions'+os.extsep+'py')
|
||||
co2 = tb.tb_frame.f_back.f_code
|
||||
assert co2.co_name == "test_capi2"
|
||||
else:
|
||||
print "Expected exception"
|
||||
class BadException(Exception):
|
||||
def __init__(self_):
|
||||
raise RuntimeError, "can't instantiate BadException"
|
||||
|
||||
def test_capi3():
|
||||
import _testcapi
|
||||
try:
|
||||
_testcapi.raise_exception(InvalidException, 1)
|
||||
except SystemError:
|
||||
pass
|
||||
except InvalidException:
|
||||
raise AssertionError("Managed to raise InvalidException");
|
||||
else:
|
||||
print "Expected SystemError exception"
|
||||
|
||||
class InvalidException:
|
||||
pass
|
||||
|
||||
if not sys.platform.startswith('java'):
|
||||
test_capi1()
|
||||
test_capi2()
|
||||
test_capi3()
|
||||
def test_capi1():
|
||||
import _testcapi
|
||||
try:
|
||||
_testcapi.raise_exception(BadException, 1)
|
||||
except TypeError, err:
|
||||
exc, err, tb = sys.exc_info()
|
||||
co = tb.tb_frame.f_code
|
||||
self.assertEquals(co.co_name, "test_capi1")
|
||||
self.assert_(co.co_filename.endswith('test_exceptions'+os.extsep+'py'))
|
||||
else:
|
||||
self.fail("Expected exception")
|
||||
|
||||
unlink(TESTFN)
|
||||
def test_capi2():
|
||||
import _testcapi
|
||||
try:
|
||||
_testcapi.raise_exception(BadException, 0)
|
||||
except RuntimeError, err:
|
||||
exc, err, tb = sys.exc_info()
|
||||
co = tb.tb_frame.f_code
|
||||
self.assertEquals(co.co_name, "__init__")
|
||||
self.assert_(co.co_filename.endswith('test_exceptions'+os.extsep+'py'))
|
||||
co2 = tb.tb_frame.f_back.f_code
|
||||
self.assertEquals(co2.co_name, "test_capi2")
|
||||
else:
|
||||
self.fail("Expected exception")
|
||||
|
||||
# test that exception attributes are happy.
|
||||
try: str(u'Hello \u00E1')
|
||||
except Exception, e: sampleUnicodeEncodeError = e
|
||||
try: unicode('\xff')
|
||||
except Exception, e: sampleUnicodeDecodeError = e
|
||||
exceptionList = [
|
||||
( BaseException, (), { 'message' : '', 'args' : () }),
|
||||
( BaseException, (1, ), { 'message' : 1, 'args' : ( 1, ) }),
|
||||
( BaseException, ('foo', ), { 'message' : 'foo', 'args' : ( 'foo', ) }),
|
||||
( BaseException, ('foo', 1), { 'message' : '', 'args' : ( 'foo', 1 ) }),
|
||||
( SystemExit, ('foo',), { 'message' : 'foo', 'args' : ( 'foo', ),
|
||||
'code' : 'foo' }),
|
||||
( IOError, ('foo',), { 'message' : 'foo', 'args' : ( 'foo', ), }),
|
||||
( IOError, ('foo', 'bar'), { 'message' : '',
|
||||
'args' : ('foo', 'bar'), }),
|
||||
( IOError, ('foo', 'bar', 'baz'),
|
||||
{ 'message' : '', 'args' : ('foo', 'bar'), }),
|
||||
( EnvironmentError, ('errnoStr', 'strErrorStr', 'filenameStr'),
|
||||
{ 'message' : '', 'args' : ('errnoStr', 'strErrorStr'),
|
||||
'strerror' : 'strErrorStr',
|
||||
'errno' : 'errnoStr', 'filename' : 'filenameStr' }),
|
||||
( EnvironmentError, (1, 'strErrorStr', 'filenameStr'),
|
||||
{ 'message' : '', 'args' : (1, 'strErrorStr'),
|
||||
'strerror' : 'strErrorStr', 'errno' : 1,
|
||||
'filename' : 'filenameStr' }),
|
||||
( SyntaxError, ('msgStr',),
|
||||
{ 'message' : 'msgStr', 'args' : ('msgStr', ),
|
||||
'print_file_and_line' : None, 'msg' : 'msgStr',
|
||||
'filename' : None, 'lineno' : None, 'offset' : None,
|
||||
'text' : None }),
|
||||
( SyntaxError, ('msgStr', ('filenameStr', 'linenoStr', 'offsetStr',
|
||||
'textStr')),
|
||||
{ 'message' : '', 'args' : ('msgStr', ('filenameStr',
|
||||
'linenoStr', 'offsetStr', 'textStr' )),
|
||||
'print_file_and_line' : None, 'msg' : 'msgStr',
|
||||
'filename' : 'filenameStr', 'lineno' : 'linenoStr',
|
||||
'offset' : 'offsetStr', 'text' : 'textStr' }),
|
||||
( SyntaxError, ('msgStr', 'filenameStr', 'linenoStr', 'offsetStr',
|
||||
'textStr', 'print_file_and_lineStr'),
|
||||
{ 'message' : '', 'args' : ('msgStr', 'filenameStr',
|
||||
'linenoStr', 'offsetStr', 'textStr',
|
||||
'print_file_and_lineStr'),
|
||||
'print_file_and_line' : None, 'msg' : 'msgStr',
|
||||
'filename' : None, 'lineno' : None, 'offset' : None,
|
||||
'text' : None }),
|
||||
( UnicodeError, (),
|
||||
{ 'message' : '', 'args' : (), }),
|
||||
( sampleUnicodeEncodeError,
|
||||
{ 'message' : '', 'args' : ('ascii', u'Hello \xe1', 6, 7,
|
||||
'ordinal not in range(128)'),
|
||||
'encoding' : 'ascii', 'object' : u'Hello \xe1',
|
||||
'start' : 6, 'reason' : 'ordinal not in range(128)' }),
|
||||
( sampleUnicodeDecodeError,
|
||||
{ 'message' : '', 'args' : ('ascii', '\xff', 0, 1,
|
||||
'ordinal not in range(128)'),
|
||||
'encoding' : 'ascii', 'object' : '\xff',
|
||||
'start' : 0, 'reason' : 'ordinal not in range(128)' }),
|
||||
( UnicodeTranslateError, (u"\u3042", 0, 1, "ouch"),
|
||||
{ 'message' : '', 'args' : (u'\u3042', 0, 1, 'ouch'),
|
||||
'object' : u'\u3042', 'reason' : 'ouch',
|
||||
'start' : 0, 'end' : 1 }),
|
||||
def test_capi3():
|
||||
import _testcapi
|
||||
self.assertRaises(SystemError, _testcapi.raise_exception,
|
||||
InvalidException, 1)
|
||||
|
||||
if not sys.platform.startswith('java'):
|
||||
test_capi1()
|
||||
test_capi2()
|
||||
test_capi3()
|
||||
|
||||
def testAttributes(self):
|
||||
# test that exception attributes are happy
|
||||
try: str(u'Hello \u00E1')
|
||||
except Exception, e: sampleUnicodeEncodeError = e
|
||||
|
||||
try: unicode('\xff')
|
||||
except Exception, e: sampleUnicodeDecodeError = e
|
||||
|
||||
exceptionList = [
|
||||
(BaseException, (), {'message' : '', 'args' : ()}),
|
||||
(BaseException, (1, ), {'message' : 1, 'args' : (1,)}),
|
||||
(BaseException, ('foo',),
|
||||
{'message' : 'foo', 'args' : ('foo',)}),
|
||||
(BaseException, ('foo', 1),
|
||||
{'message' : '', 'args' : ('foo', 1)}),
|
||||
(SystemExit, ('foo',),
|
||||
{'message' : 'foo', 'args' : ('foo',), 'code' : 'foo'}),
|
||||
(IOError, ('foo',),
|
||||
{'message' : 'foo', 'args' : ('foo',)}),
|
||||
(IOError, ('foo', 'bar'),
|
||||
{'message' : '', 'args' : ('foo', 'bar')}),
|
||||
(IOError, ('foo', 'bar', 'baz'),
|
||||
{'message' : '', 'args' : ('foo', 'bar')}),
|
||||
(EnvironmentError, ('errnoStr', 'strErrorStr', 'filenameStr'),
|
||||
{'message' : '', 'args' : ('errnoStr', 'strErrorStr'),
|
||||
'strerror' : 'strErrorStr', 'errno' : 'errnoStr',
|
||||
'filename' : 'filenameStr'}),
|
||||
(EnvironmentError, (1, 'strErrorStr', 'filenameStr'),
|
||||
{'message' : '', 'args' : (1, 'strErrorStr'), 'errno' : 1,
|
||||
'strerror' : 'strErrorStr', 'filename' : 'filenameStr'}),
|
||||
(SyntaxError, ('msgStr',),
|
||||
{'message' : 'msgStr', 'args' : ('msgStr',), 'text' : None,
|
||||
'print_file_and_line' : None, 'msg' : 'msgStr',
|
||||
'filename' : None, 'lineno' : None, 'offset' : None}),
|
||||
(SyntaxError, ('msgStr', ('filenameStr', 'linenoStr', 'offsetStr',
|
||||
'textStr')),
|
||||
{'message' : '', 'offset' : 'offsetStr', 'text' : 'textStr',
|
||||
'args' : ('msgStr', ('filenameStr', 'linenoStr',
|
||||
'offsetStr', 'textStr')),
|
||||
'print_file_and_line' : None, 'msg' : 'msgStr',
|
||||
'filename' : 'filenameStr', 'lineno' : 'linenoStr'}),
|
||||
(SyntaxError, ('msgStr', 'filenameStr', 'linenoStr', 'offsetStr',
|
||||
'textStr', 'print_file_and_lineStr'),
|
||||
{'message' : '', 'text' : None,
|
||||
'args' : ('msgStr', 'filenameStr', 'linenoStr', 'offsetStr',
|
||||
'textStr', 'print_file_and_lineStr'),
|
||||
'print_file_and_line' : None, 'msg' : 'msgStr',
|
||||
'filename' : None, 'lineno' : None, 'offset' : None}),
|
||||
(UnicodeError, (), {'message' : '', 'args' : (),}),
|
||||
(sampleUnicodeEncodeError,
|
||||
{'message' : '', 'args' : ('ascii', u'Hello \xe1', 6, 7,
|
||||
'ordinal not in range(128)'),
|
||||
'encoding' : 'ascii', 'object' : u'Hello \xe1',
|
||||
'start' : 6, 'reason' : 'ordinal not in range(128)'}),
|
||||
(sampleUnicodeDecodeError,
|
||||
{'message' : '', 'args' : ('ascii', '\xff', 0, 1,
|
||||
'ordinal not in range(128)'),
|
||||
'encoding' : 'ascii', 'object' : '\xff',
|
||||
'start' : 0, 'reason' : 'ordinal not in range(128)'}),
|
||||
(UnicodeTranslateError, (u"\u3042", 0, 1, "ouch"),
|
||||
{'message' : '', 'args' : (u'\u3042', 0, 1, 'ouch'),
|
||||
'object' : u'\u3042', 'reason' : 'ouch',
|
||||
'start' : 0, 'end' : 1}),
|
||||
]
|
||||
try:
|
||||
exceptionList.append(
|
||||
( WindowsError, (1, 'strErrorStr', 'filenameStr'),
|
||||
{ 'message' : '', 'args' : (1, 'strErrorStr'),
|
||||
'strerror' : 'strErrorStr',
|
||||
'errno' : 22, 'filename' : 'filenameStr',
|
||||
'winerror' : 1 }))
|
||||
except NameError: pass
|
||||
try:
|
||||
exceptionList.append(
|
||||
(WindowsError, (1, 'strErrorStr', 'filenameStr'),
|
||||
{'message' : '', 'args' : (1, 'strErrorStr'),
|
||||
'strerror' : 'strErrorStr', 'winerror' : 1,
|
||||
'errno' : 22, 'filename' : 'filenameStr'})
|
||||
)
|
||||
except NameError: pass
|
||||
|
||||
for args in exceptionList:
|
||||
expected = args[-1]
|
||||
try:
|
||||
if len(args) == 2: raise args[0]
|
||||
else: raise apply(args[0], args[1])
|
||||
except BaseException, e:
|
||||
for checkArgName in expected.keys():
|
||||
if repr(getattr(e, checkArgName)) != repr(expected[checkArgName]):
|
||||
raise TestFailed('Checking exception arguments, exception '
|
||||
'"%s", attribute "%s" expected %s got %s.' %
|
||||
( repr(e), checkArgName,
|
||||
repr(expected[checkArgName]),
|
||||
repr(getattr(e, checkArgName)) ))
|
||||
import pickle, random
|
||||
|
||||
for args in exceptionList:
|
||||
expected = args[-1]
|
||||
try:
|
||||
exc = args[0]
|
||||
if len(args) == 2: raise exc
|
||||
else: raise exc(*args[1])
|
||||
except BaseException, e:
|
||||
if (e is not exc and # needed for sampleUnicode errors
|
||||
type(e) is not exc):
|
||||
raise
|
||||
# Verify no ref leaks in Exc_str()
|
||||
s = str(e)
|
||||
for checkArgName in expected:
|
||||
self.assertEquals(repr(getattr(e, checkArgName)),
|
||||
repr(expected[checkArgName]),
|
||||
'exception "%s", attribute "%s"' %
|
||||
(repr(e), checkArgName))
|
||||
|
||||
# test for pickling support
|
||||
new = pickle.loads(pickle.dumps(e, random.randint(0, 2)))
|
||||
for checkArgName in expected:
|
||||
self.assertEquals(repr(getattr(e, checkArgName)),
|
||||
repr(expected[checkArgName]),
|
||||
'pickled exception "%s", attribute "%s' %
|
||||
(repr(e), checkArgName))
|
||||
|
||||
def testKeywordArgs(self):
|
||||
# test that builtin exception don't take keyword args,
|
||||
# but user-defined subclasses can if they want
|
||||
self.assertRaises(TypeError, BaseException, a=1)
|
||||
|
||||
class DerivedException(BaseException):
|
||||
def __init__(self, fancy_arg):
|
||||
BaseException.__init__(self)
|
||||
self.fancy_arg = fancy_arg
|
||||
|
||||
x = DerivedException(fancy_arg=42)
|
||||
self.assertEquals(x.fancy_arg, 42)
|
||||
|
||||
def test_main():
|
||||
run_unittest(ExceptionTests)
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_main()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import functional
|
||||
import functools
|
||||
import unittest
|
||||
from test import test_support
|
||||
from weakref import proxy
|
||||
|
@ -21,7 +21,7 @@ def capture(*args, **kw):
|
|||
|
||||
class TestPartial(unittest.TestCase):
|
||||
|
||||
thetype = functional.partial
|
||||
thetype = functools.partial
|
||||
|
||||
def test_basic_examples(self):
|
||||
p = self.thetype(capture, 1, 2, a=10, b=20)
|
||||
|
@ -140,7 +140,7 @@ class TestPartial(unittest.TestCase):
|
|||
join = self.thetype(''.join)
|
||||
self.assertEqual(join(data), '0123456789')
|
||||
|
||||
class PartialSubclass(functional.partial):
|
||||
class PartialSubclass(functools.partial):
|
||||
pass
|
||||
|
||||
class TestPartialSubclass(TestPartial):
|
|
@ -766,7 +766,7 @@ Samuele
|
|||
|
||||
>>> from operator import itemgetter
|
||||
>>> d = dict(a=1, b=2, c=1, d=2, e=1, f=2, g=3)
|
||||
>>> di = sorted(d.iteritems(), key=itemgetter(1))
|
||||
>>> di = sorted(sorted(d.iteritems()), key=itemgetter(1))
|
||||
>>> for k, g in groupby(di, itemgetter(1)):
|
||||
... print k, map(itemgetter(0), g)
|
||||
...
|
||||
|
|
|
@ -5,27 +5,16 @@ print '3. Operations'
|
|||
print 'XXX Mostly not yet implemented'
|
||||
|
||||
|
||||
print '3.1 Dictionary lookups succeed even if __cmp__() raises an exception'
|
||||
|
||||
# SourceForge bug #112558:
|
||||
# http://sourceforge.net/bugs/?func=detailbug&bug_id=112558&group_id=5470
|
||||
print '3.1 Dictionary lookups fail if __cmp__() raises an exception'
|
||||
|
||||
class BadDictKey:
|
||||
already_printed_raising_error = 0
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.__class__)
|
||||
|
||||
def __cmp__(self, other):
|
||||
if isinstance(other, self.__class__):
|
||||
if not BadDictKey.already_printed_raising_error:
|
||||
# How many times __cmp__ gets called depends on the hash
|
||||
# code and the internals of the dict implementation; we
|
||||
# know it will be called at least once, but that's it.
|
||||
# already_printed_raising_error makes sure the expected-
|
||||
# output file prints the msg at most once.
|
||||
BadDictKey.already_printed_raising_error = 1
|
||||
print "raising error"
|
||||
print "raising error"
|
||||
raise RuntimeError, "gotcha"
|
||||
return other
|
||||
|
||||
|
@ -33,8 +22,21 @@ d = {}
|
|||
x1 = BadDictKey()
|
||||
x2 = BadDictKey()
|
||||
d[x1] = 1
|
||||
d[x2] = 2
|
||||
print "No exception passed through."
|
||||
for stmt in ['d[x2] = 2',
|
||||
'z = d[x2]',
|
||||
'x2 in d',
|
||||
'd.has_key(x2)',
|
||||
'd.get(x2)',
|
||||
'd.setdefault(x2, 42)',
|
||||
'd.pop(x2)',
|
||||
'd.update({x2: 2})']:
|
||||
try:
|
||||
exec stmt
|
||||
except RuntimeError:
|
||||
print "%s: caught the RuntimeError outside" % (stmt,)
|
||||
else:
|
||||
print "%s: No exception passed through!" # old CPython behavior
|
||||
|
||||
|
||||
# Dict resizing bug, found by Jack Jansen in 2.2 CVS development.
|
||||
# This version got an assert failure in debug build, infinite loop in
|
||||
|
@ -50,3 +52,27 @@ for i in range(5):
|
|||
del d[i]
|
||||
for i in range(5, 9): # i==8 was the problem
|
||||
d[i] = i
|
||||
|
||||
|
||||
# Another dict resizing bug (SF bug #1456209).
|
||||
# This caused Segmentation faults or Illegal instructions.
|
||||
|
||||
class X(object):
|
||||
def __hash__(self):
|
||||
return 5
|
||||
def __eq__(self, other):
|
||||
if resizing:
|
||||
d.clear()
|
||||
return False
|
||||
d = {}
|
||||
resizing = False
|
||||
d[X()] = 1
|
||||
d[X()] = 2
|
||||
d[X()] = 3
|
||||
d[X()] = 4
|
||||
d[X()] = 5
|
||||
# now trigger a resize
|
||||
resizing = True
|
||||
d[9] = 6
|
||||
|
||||
print 'resize bugs not triggered.'
|
||||
|
|
|
@ -230,7 +230,7 @@ class TestOptionChecks(BaseTest):
|
|||
|
||||
def test_attr_invalid(self):
|
||||
self.assertOptionError(
|
||||
"option -b: invalid keyword arguments: foo, bar",
|
||||
"option -b: invalid keyword arguments: bar, foo",
|
||||
["-b"], {'foo': None, 'bar': None})
|
||||
|
||||
def test_action_invalid(self):
|
||||
|
@ -718,9 +718,8 @@ class TestStandard(BaseTest):
|
|||
def test_ambiguous_option(self):
|
||||
self.parser.add_option("--foz", action="store",
|
||||
type="string", dest="foo")
|
||||
possibilities = ", ".join({"--foz": None, "--foo": None}.keys())
|
||||
self.assertParseFail(["--f=bar"],
|
||||
"ambiguous option: --f (%s?)" % possibilities)
|
||||
"ambiguous option: --f (--foo, --foz?)")
|
||||
|
||||
|
||||
def test_short_and_long_option_split(self):
|
||||
|
@ -1537,10 +1536,9 @@ class TestMatchAbbrev(BaseTest):
|
|||
def test_match_abbrev_error(self):
|
||||
s = "--f"
|
||||
wordmap = {"--foz": None, "--foo": None, "--fie": None}
|
||||
possibilities = ", ".join(wordmap.keys())
|
||||
self.assertRaises(
|
||||
_match_abbrev, (s, wordmap), None,
|
||||
BadOptionError, "ambiguous option: --f (%s?)" % possibilities)
|
||||
BadOptionError, "ambiguous option: --f (--fie, --foo, --foz?)")
|
||||
|
||||
|
||||
class TestParseNumber(BaseTest):
|
||||
|
|
|
@ -11,16 +11,21 @@ except NameError:
|
|||
# list, tuple and dict subclasses that do or don't overwrite __repr__
|
||||
class list2(list):
|
||||
pass
|
||||
|
||||
class list3(list):
|
||||
def __repr__(self):
|
||||
return list.__repr__(self)
|
||||
|
||||
class tuple2(tuple):
|
||||
pass
|
||||
|
||||
class tuple3(tuple):
|
||||
def __repr__(self):
|
||||
return tuple.__repr__(self)
|
||||
|
||||
class dict2(dict):
|
||||
pass
|
||||
|
||||
class dict3(dict):
|
||||
def __repr__(self):
|
||||
return dict.__repr__(self)
|
||||
|
@ -101,7 +106,13 @@ class QueryTestCase(unittest.TestCase):
|
|||
|
||||
def test_same_as_repr(self):
|
||||
# Simple objects, small containers and classes that overwrite __repr__
|
||||
# For those the result should be the same as repr()
|
||||
# For those the result should be the same as repr().
|
||||
# Ahem. The docs don't say anything about that -- this appears to
|
||||
# be testing an implementation quirk. Starting in Python 2.5, it's
|
||||
# not true for dicts: pprint always sorts dicts by key now; before,
|
||||
# it sorted a dict display if and only if the display required
|
||||
# multiple lines. For that reason, dicts with more than one element
|
||||
# aren't tested here.
|
||||
verify = self.assert_
|
||||
for simple in (0, 0L, 0+0j, 0.0, "", uni(""),
|
||||
(), tuple2(), tuple3(),
|
||||
|
@ -112,9 +123,7 @@ class QueryTestCase(unittest.TestCase):
|
|||
(1,2), [3,4], {5: 6, 7: 8},
|
||||
tuple2((1,2)), tuple3((1,2)), tuple3(range(100)),
|
||||
[3,4], list2([3,4]), list3([3,4]), list3(range(100)),
|
||||
{5: 6, 7: 8}, dict2({5: 6, 7: 8}), dict3({5: 6, 7: 8}),
|
||||
dict3([(x,x) for x in range(100)]),
|
||||
{"xy\tab\n": (3,), 5: [[]], (): {}},
|
||||
{5: 6, 7: 8}, dict2({5: 6}), dict3({5: 6}),
|
||||
range(10, -11, -1)
|
||||
):
|
||||
native = repr(simple)
|
||||
|
@ -160,6 +169,24 @@ class QueryTestCase(unittest.TestCase):
|
|||
for type in [list, list2]:
|
||||
self.assertEqual(pprint.pformat(type(o), indent=4), exp)
|
||||
|
||||
def test_sorted_dict(self):
|
||||
# Starting in Python 2.5, pprint sorts dict displays by key regardless
|
||||
# of how small the dictionary may be.
|
||||
# Before the change, on 32-bit Windows pformat() gave order
|
||||
# 'a', 'c', 'b' here, so this test failed.
|
||||
d = {'a': 1, 'b': 1, 'c': 1}
|
||||
self.assertEqual(pprint.pformat(d), "{'a': 1, 'b': 1, 'c': 1}")
|
||||
self.assertEqual(pprint.pformat([d, d]),
|
||||
"[{'a': 1, 'b': 1, 'c': 1}, {'a': 1, 'b': 1, 'c': 1}]")
|
||||
|
||||
# The next one is kind of goofy. The sorted order depends on the
|
||||
# alphabetic order of type names: "int" < "str" < "tuple". Before
|
||||
# Python 2.5, this was in the test_same_as_repr() test. It's worth
|
||||
# keeping around for now because it's one of few tests of pprint
|
||||
# against a crazy mix of types.
|
||||
self.assertEqual(pprint.pformat({"xy\tab\n": (3,), 5: [[]], (): {}}),
|
||||
r"{5: [[]], 'xy\tab\n': (3,), (): {}}")
|
||||
|
||||
def test_subclassing(self):
|
||||
o = {'names with spaces': 'should be presented using repr()',
|
||||
'others.should.not.be': 'like.this'}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
import sys
|
||||
import os
|
||||
import shutil
|
||||
import unittest
|
||||
|
||||
from test.test_support import run_unittest
|
||||
|
@ -198,8 +199,10 @@ class LongReprTest(unittest.TestCase):
|
|||
self.pkgname = os.path.join(longname)
|
||||
self.subpkgname = os.path.join(longname, longname)
|
||||
# Make the package and subpackage
|
||||
shutil.rmtree(self.pkgname, ignore_errors=True)
|
||||
os.mkdir(self.pkgname)
|
||||
touch(os.path.join(self.pkgname, '__init__'+os.extsep+'py'))
|
||||
shutil.rmtree(self.subpkgname, ignore_errors=True)
|
||||
os.mkdir(self.subpkgname)
|
||||
touch(os.path.join(self.subpkgname, '__init__'+os.extsep+'py'))
|
||||
# Remember where we are
|
||||
|
|
|
@ -2,7 +2,7 @@ from test.test_support import TestFailed, verbose, verify
|
|||
import test.test_support
|
||||
import struct
|
||||
import array
|
||||
import unittest
|
||||
import warnings
|
||||
|
||||
import sys
|
||||
ISBIGENDIAN = sys.byteorder == "big"
|
||||
|
@ -10,7 +10,14 @@ del sys
|
|||
verify((struct.pack('=i', 1)[0] == chr(0)) == ISBIGENDIAN,
|
||||
"bigendian determination appears wrong")
|
||||
|
||||
PY_STRUCT_RANGE_CHECKING = 1
|
||||
try:
|
||||
import _struct
|
||||
except ImportError:
|
||||
PY_STRUCT_RANGE_CHECKING = 0
|
||||
PY_STRUCT_OVERFLOW_MASKING = 1
|
||||
else:
|
||||
PY_STRUCT_RANGE_CHECKING = getattr(_struct, '_PY_STRUCT_RANGE_CHECKING', 0)
|
||||
PY_STRUCT_OVERFLOW_MASKING = getattr(_struct, '_PY_STRUCT_OVERFLOW_MASKING', 0)
|
||||
|
||||
def string_reverse(s):
|
||||
chars = list(s)
|
||||
|
@ -35,12 +42,39 @@ def simple_err(func, *args):
|
|||
def any_err(func, *args):
|
||||
try:
|
||||
func(*args)
|
||||
except (struct.error, OverflowError, TypeError):
|
||||
except (struct.error, TypeError):
|
||||
pass
|
||||
else:
|
||||
raise TestFailed, "%s%s did not raise error" % (
|
||||
func.__name__, args)
|
||||
|
||||
def deprecated_err(func, *args):
|
||||
# The `warnings` module doesn't have an advertised way to restore
|
||||
# its filter list. Cheat.
|
||||
save_warnings_filters = warnings.filters[:]
|
||||
# Grrr, we need this function to warn every time. Without removing
|
||||
# the warningregistry, running test_tarfile then test_struct would fail
|
||||
# on 64-bit platforms.
|
||||
globals = func.func_globals
|
||||
if '__warningregistry__' in globals:
|
||||
del globals['__warningregistry__']
|
||||
warnings.filterwarnings("error", r"""^struct.*""", DeprecationWarning)
|
||||
warnings.filterwarnings("error", r""".*format requires.*""",
|
||||
DeprecationWarning)
|
||||
try:
|
||||
try:
|
||||
func(*args)
|
||||
except (struct.error, TypeError):
|
||||
pass
|
||||
except DeprecationWarning:
|
||||
if not PY_STRUCT_OVERFLOW_MASKING:
|
||||
raise TestFailed, "%s%s expected to raise struct.error" % (
|
||||
func.__name__, args)
|
||||
else:
|
||||
raise TestFailed, "%s%s did not raise error" % (
|
||||
func.__name__, args)
|
||||
finally:
|
||||
warnings.filters[:] = save_warnings_filters[:]
|
||||
|
||||
simple_err(struct.calcsize, 'Z')
|
||||
|
||||
|
@ -272,8 +306,8 @@ class IntTester:
|
|||
if verbose:
|
||||
print "Skipping buggy range check for code", code
|
||||
else:
|
||||
any_err(pack, ">" + code, x)
|
||||
any_err(pack, "<" + code, x)
|
||||
deprecated_err(pack, ">" + code, x)
|
||||
deprecated_err(pack, "<" + code, x)
|
||||
|
||||
# Much the same for unsigned.
|
||||
code = self.unsigned_code
|
||||
|
@ -327,8 +361,8 @@ class IntTester:
|
|||
if verbose:
|
||||
print "Skipping buggy range check for code", code
|
||||
else:
|
||||
any_err(pack, ">" + code, x)
|
||||
any_err(pack, "<" + code, x)
|
||||
deprecated_err(pack, ">" + code, x)
|
||||
deprecated_err(pack, "<" + code, x)
|
||||
|
||||
def run(self):
|
||||
from random import randrange
|
||||
|
@ -448,91 +482,98 @@ def test_1229380():
|
|||
for endian in ('', '>', '<'):
|
||||
for cls in (int, long):
|
||||
for fmt in ('B', 'H', 'I', 'L'):
|
||||
any_err(struct.pack, endian + fmt, cls(-1))
|
||||
deprecated_err(struct.pack, endian + fmt, cls(-1))
|
||||
|
||||
any_err(struct.pack, endian + 'B', cls(300))
|
||||
any_err(struct.pack, endian + 'H', cls(70000))
|
||||
deprecated_err(struct.pack, endian + 'B', cls(300))
|
||||
deprecated_err(struct.pack, endian + 'H', cls(70000))
|
||||
|
||||
any_err(struct.pack, endian + 'I', sys.maxint * 4L)
|
||||
any_err(struct.pack, endian + 'L', sys.maxint * 4L)
|
||||
deprecated_err(struct.pack, endian + 'I', sys.maxint * 4L)
|
||||
deprecated_err(struct.pack, endian + 'L', sys.maxint * 4L)
|
||||
|
||||
if PY_STRUCT_RANGE_CHECKING:
|
||||
test_1229380()
|
||||
|
||||
class PackBufferTestCase(unittest.TestCase):
|
||||
"""
|
||||
Test the packing methods that work on buffers.
|
||||
"""
|
||||
|
||||
def test_unpack_from( self ):
|
||||
test_string = 'abcd01234'
|
||||
fmt = '4s'
|
||||
s = struct.Struct(fmt)
|
||||
for cls in (str, buffer):
|
||||
data = cls(test_string)
|
||||
self.assertEquals(s.unpack_from(data), ('abcd',))
|
||||
self.assertEquals(s.unpack_from(data, 2), ('cd01',))
|
||||
self.assertEquals(s.unpack_from(data, 4), ('0123',))
|
||||
for i in xrange(6):
|
||||
self.assertEquals(s.unpack_from(data, i), (data[i:i+4],))
|
||||
for i in xrange(6, len(test_string) + 1):
|
||||
simple_err(s.unpack_from, data, i)
|
||||
for cls in (str, buffer):
|
||||
data = cls(test_string)
|
||||
self.assertEquals(struct.unpack_from(fmt, data), ('abcd',))
|
||||
self.assertEquals(struct.unpack_from(fmt, data, 2), ('cd01',))
|
||||
self.assertEquals(struct.unpack_from(fmt, data, 4), ('0123',))
|
||||
for i in xrange(6):
|
||||
self.assertEquals(struct.unpack_from(fmt, data, i),
|
||||
(data[i:i+4],))
|
||||
for i in xrange(6, len(test_string) + 1):
|
||||
simple_err(struct.unpack_from, fmt, data, i)
|
||||
###########################################################################
|
||||
# Packing and unpacking to/from buffers.
|
||||
|
||||
def test_pack_to( self ):
|
||||
test_string = 'Reykjavik rocks, eow!'
|
||||
writable_buf = array.array('c', ' '*100)
|
||||
fmt = '21s'
|
||||
s = struct.Struct(fmt)
|
||||
# Copied and modified from unittest.
|
||||
def assertRaises(excClass, callableObj, *args, **kwargs):
|
||||
try:
|
||||
callableObj(*args, **kwargs)
|
||||
except excClass:
|
||||
return
|
||||
else:
|
||||
raise RuntimeError("%s not raised." % excClass)
|
||||
|
||||
# Test without offset
|
||||
s.pack_to(writable_buf, 0, test_string)
|
||||
from_buf = writable_buf.tostring()[:len(test_string)]
|
||||
self.assertEquals(from_buf, test_string)
|
||||
def test_unpack_from():
|
||||
test_string = 'abcd01234'
|
||||
fmt = '4s'
|
||||
s = struct.Struct(fmt)
|
||||
for cls in (str, buffer):
|
||||
data = cls(test_string)
|
||||
assert s.unpack_from(data) == ('abcd',)
|
||||
assert s.unpack_from(data, 2) == ('cd01',)
|
||||
assert s.unpack_from(data, 4) == ('0123',)
|
||||
for i in xrange(6):
|
||||
assert s.unpack_from(data, i) == (data[i:i+4],)
|
||||
for i in xrange(6, len(test_string) + 1):
|
||||
simple_err(s.unpack_from, data, i)
|
||||
for cls in (str, buffer):
|
||||
data = cls(test_string)
|
||||
assert struct.unpack_from(fmt, data) == ('abcd',)
|
||||
assert struct.unpack_from(fmt, data, 2) == ('cd01',)
|
||||
assert struct.unpack_from(fmt, data, 4) == ('0123',)
|
||||
for i in xrange(6):
|
||||
assert (struct.unpack_from(fmt, data, i) == (data[i:i+4],))
|
||||
for i in xrange(6, len(test_string) + 1):
|
||||
simple_err(struct.unpack_from, fmt, data, i)
|
||||
|
||||
# Test with offset.
|
||||
s.pack_to(writable_buf, 10, test_string)
|
||||
from_buf = writable_buf.tostring()[:len(test_string)+10]
|
||||
self.assertEquals(from_buf, (test_string[:10] + test_string))
|
||||
def test_pack_to():
|
||||
test_string = 'Reykjavik rocks, eow!'
|
||||
writable_buf = array.array('c', ' '*100)
|
||||
fmt = '21s'
|
||||
s = struct.Struct(fmt)
|
||||
|
||||
# Go beyond boundaries.
|
||||
small_buf = array.array('c', ' '*10)
|
||||
self.assertRaises(struct.error, s.pack_to, small_buf, 0, test_string)
|
||||
self.assertRaises(struct.error, s.pack_to, small_buf, 2, test_string)
|
||||
# Test without offset
|
||||
s.pack_to(writable_buf, 0, test_string)
|
||||
from_buf = writable_buf.tostring()[:len(test_string)]
|
||||
assert from_buf == test_string
|
||||
|
||||
def test_pack_to_fn( self ):
|
||||
test_string = 'Reykjavik rocks, eow!'
|
||||
writable_buf = array.array('c', ' '*100)
|
||||
fmt = '21s'
|
||||
pack_to = lambda *args: struct.pack_to(fmt, *args)
|
||||
# Test with offset.
|
||||
s.pack_to(writable_buf, 10, test_string)
|
||||
from_buf = writable_buf.tostring()[:len(test_string)+10]
|
||||
assert from_buf == (test_string[:10] + test_string)
|
||||
|
||||
# Test without offset
|
||||
pack_to(writable_buf, 0, test_string)
|
||||
from_buf = writable_buf.tostring()[:len(test_string)]
|
||||
self.assertEquals(from_buf, test_string)
|
||||
# Go beyond boundaries.
|
||||
small_buf = array.array('c', ' '*10)
|
||||
assertRaises(struct.error, s.pack_to, small_buf, 0, test_string)
|
||||
assertRaises(struct.error, s.pack_to, small_buf, 2, test_string)
|
||||
|
||||
# Test with offset.
|
||||
pack_to(writable_buf, 10, test_string)
|
||||
from_buf = writable_buf.tostring()[:len(test_string)+10]
|
||||
self.assertEquals(from_buf, (test_string[:10] + test_string))
|
||||
def test_pack_to_fn():
|
||||
test_string = 'Reykjavik rocks, eow!'
|
||||
writable_buf = array.array('c', ' '*100)
|
||||
fmt = '21s'
|
||||
pack_to = lambda *args: struct.pack_to(fmt, *args)
|
||||
|
||||
# Go beyond boundaries.
|
||||
small_buf = array.array('c', ' '*10)
|
||||
self.assertRaises(struct.error, pack_to, small_buf, 0, test_string)
|
||||
self.assertRaises(struct.error, pack_to, small_buf, 2, test_string)
|
||||
# Test without offset
|
||||
pack_to(writable_buf, 0, test_string)
|
||||
from_buf = writable_buf.tostring()[:len(test_string)]
|
||||
assert from_buf == test_string
|
||||
|
||||
# Test with offset.
|
||||
pack_to(writable_buf, 10, test_string)
|
||||
from_buf = writable_buf.tostring()[:len(test_string)+10]
|
||||
assert from_buf == (test_string[:10] + test_string)
|
||||
|
||||
def test_main():
|
||||
test.test_support.run_unittest(PackBufferTestCase)
|
||||
# Go beyond boundaries.
|
||||
small_buf = array.array('c', ' '*10)
|
||||
assertRaises(struct.error, pack_to, small_buf, 0, test_string)
|
||||
assertRaises(struct.error, pack_to, small_buf, 2, test_string)
|
||||
|
||||
|
||||
# Test methods to pack and unpack from buffers rather than strings.
|
||||
test_unpack_from()
|
||||
test_pack_to()
|
||||
test_pack_to_fn()
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_main()
|
||||
|
|
|
@ -76,10 +76,11 @@ def test_password_manager(self):
|
|||
>>> mgr.find_user_password("c", "http://example.com/bar")
|
||||
('bar', 'nini')
|
||||
|
||||
Currently, we use the highest-level path where more than one match:
|
||||
Actually, this is really undefined ATM
|
||||
## Currently, we use the highest-level path where more than one match:
|
||||
|
||||
>>> mgr.find_user_password("Some Realm", "http://example.com/ni")
|
||||
('joe', 'password')
|
||||
## >>> mgr.find_user_password("Some Realm", "http://example.com/ni")
|
||||
## ('joe', 'password')
|
||||
|
||||
Use latest add_password() in case of conflict:
|
||||
|
||||
|
@ -110,6 +111,53 @@ def test_password_manager(self):
|
|||
pass
|
||||
|
||||
|
||||
def test_password_manager_default_port(self):
|
||||
"""
|
||||
>>> mgr = urllib2.HTTPPasswordMgr()
|
||||
>>> add = mgr.add_password
|
||||
|
||||
The point to note here is that we can't guess the default port if there's
|
||||
no scheme. This applies to both add_password and find_user_password.
|
||||
|
||||
>>> add("f", "http://g.example.com:80", "10", "j")
|
||||
>>> add("g", "http://h.example.com", "11", "k")
|
||||
>>> add("h", "i.example.com:80", "12", "l")
|
||||
>>> add("i", "j.example.com", "13", "m")
|
||||
>>> mgr.find_user_password("f", "g.example.com:100")
|
||||
(None, None)
|
||||
>>> mgr.find_user_password("f", "g.example.com:80")
|
||||
('10', 'j')
|
||||
>>> mgr.find_user_password("f", "g.example.com")
|
||||
(None, None)
|
||||
>>> mgr.find_user_password("f", "http://g.example.com:100")
|
||||
(None, None)
|
||||
>>> mgr.find_user_password("f", "http://g.example.com:80")
|
||||
('10', 'j')
|
||||
>>> mgr.find_user_password("f", "http://g.example.com")
|
||||
('10', 'j')
|
||||
>>> mgr.find_user_password("g", "h.example.com")
|
||||
('11', 'k')
|
||||
>>> mgr.find_user_password("g", "h.example.com:80")
|
||||
('11', 'k')
|
||||
>>> mgr.find_user_password("g", "http://h.example.com:80")
|
||||
('11', 'k')
|
||||
>>> mgr.find_user_password("h", "i.example.com")
|
||||
(None, None)
|
||||
>>> mgr.find_user_password("h", "i.example.com:80")
|
||||
('12', 'l')
|
||||
>>> mgr.find_user_password("h", "http://i.example.com:80")
|
||||
('12', 'l')
|
||||
>>> mgr.find_user_password("i", "j.example.com")
|
||||
('13', 'm')
|
||||
>>> mgr.find_user_password("i", "j.example.com:80")
|
||||
(None, None)
|
||||
>>> mgr.find_user_password("i", "http://j.example.com")
|
||||
('13', 'm')
|
||||
>>> mgr.find_user_password("i", "http://j.example.com:80")
|
||||
(None, None)
|
||||
|
||||
"""
|
||||
|
||||
class MockOpener:
|
||||
addheaders = []
|
||||
def open(self, req, data=None):
|
||||
|
@ -270,6 +318,27 @@ class MockPasswordManager:
|
|||
|
||||
class OpenerDirectorTests(unittest.TestCase):
|
||||
|
||||
def test_badly_named_methods(self):
|
||||
# test work-around for three methods that accidentally follow the
|
||||
# naming conventions for handler methods
|
||||
# (*_open() / *_request() / *_response())
|
||||
|
||||
# These used to call the accidentally-named methods, causing a
|
||||
# TypeError in real code; here, returning self from these mock
|
||||
# methods would either cause no exception, or AttributeError.
|
||||
|
||||
from urllib2 import URLError
|
||||
|
||||
o = OpenerDirector()
|
||||
meth_spec = [
|
||||
[("do_open", "return self"), ("proxy_open", "return self")],
|
||||
[("redirect_request", "return self")],
|
||||
]
|
||||
handlers = add_ordered_mock_handlers(o, meth_spec)
|
||||
o.add_handler(urllib2.UnknownHandler())
|
||||
for scheme in "do", "proxy", "redirect":
|
||||
self.assertRaises(URLError, o.open, scheme+"://example.com/")
|
||||
|
||||
def test_handled(self):
|
||||
# handler returning non-None means no more handlers will be called
|
||||
o = OpenerDirector()
|
||||
|
@ -560,6 +629,7 @@ class HandlerTests(unittest.TestCase):
|
|||
self.method = method
|
||||
self.selector = url
|
||||
self.req_headers += headers.items()
|
||||
self.req_headers.sort()
|
||||
if body:
|
||||
self.data = body
|
||||
if self.raise_on_endheaders:
|
||||
|
@ -758,6 +828,8 @@ class HandlerTests(unittest.TestCase):
|
|||
realm = "ACME Widget Store"
|
||||
http_handler = MockHTTPHandler(
|
||||
401, 'WWW-Authenticate: Basic realm="%s"\r\n\r\n' % realm)
|
||||
opener.add_handler(auth_handler)
|
||||
opener.add_handler(http_handler)
|
||||
self._test_basic_auth(opener, auth_handler, "Authorization",
|
||||
realm, http_handler, password_manager,
|
||||
"http://acme.example.com/protected",
|
||||
|
@ -773,6 +845,8 @@ class HandlerTests(unittest.TestCase):
|
|||
realm = "ACME Networks"
|
||||
http_handler = MockHTTPHandler(
|
||||
407, 'Proxy-Authenticate: Basic realm="%s"\r\n\r\n' % realm)
|
||||
opener.add_handler(auth_handler)
|
||||
opener.add_handler(http_handler)
|
||||
self._test_basic_auth(opener, auth_handler, "Proxy-authorization",
|
||||
realm, http_handler, password_manager,
|
||||
"http://acme.example.com:3128/protected",
|
||||
|
@ -784,29 +858,53 @@ class HandlerTests(unittest.TestCase):
|
|||
# response (http://python.org/sf/1479302), where it should instead
|
||||
# return None to allow another handler (especially
|
||||
# HTTPBasicAuthHandler) to handle the response.
|
||||
|
||||
# Also (http://python.org/sf/14797027, RFC 2617 section 1.2), we must
|
||||
# try digest first (since it's the strongest auth scheme), so we record
|
||||
# order of calls here to check digest comes first:
|
||||
class RecordingOpenerDirector(OpenerDirector):
|
||||
def __init__(self):
|
||||
OpenerDirector.__init__(self)
|
||||
self.recorded = []
|
||||
def record(self, info):
|
||||
self.recorded.append(info)
|
||||
class TestDigestAuthHandler(urllib2.HTTPDigestAuthHandler):
|
||||
handler_order = 400 # strictly before HTTPBasicAuthHandler
|
||||
opener = OpenerDirector()
|
||||
def http_error_401(self, *args, **kwds):
|
||||
self.parent.record("digest")
|
||||
urllib2.HTTPDigestAuthHandler.http_error_401(self,
|
||||
*args, **kwds)
|
||||
class TestBasicAuthHandler(urllib2.HTTPBasicAuthHandler):
|
||||
def http_error_401(self, *args, **kwds):
|
||||
self.parent.record("basic")
|
||||
urllib2.HTTPBasicAuthHandler.http_error_401(self,
|
||||
*args, **kwds)
|
||||
|
||||
opener = RecordingOpenerDirector()
|
||||
password_manager = MockPasswordManager()
|
||||
digest_handler = TestDigestAuthHandler(password_manager)
|
||||
basic_handler = urllib2.HTTPBasicAuthHandler(password_manager)
|
||||
opener.add_handler(digest_handler)
|
||||
basic_handler = TestBasicAuthHandler(password_manager)
|
||||
realm = "ACME Networks"
|
||||
http_handler = MockHTTPHandler(
|
||||
401, 'WWW-Authenticate: Basic realm="%s"\r\n\r\n' % realm)
|
||||
opener.add_handler(basic_handler)
|
||||
opener.add_handler(digest_handler)
|
||||
opener.add_handler(http_handler)
|
||||
|
||||
# check basic auth isn't blocked by digest handler failing
|
||||
self._test_basic_auth(opener, basic_handler, "Authorization",
|
||||
realm, http_handler, password_manager,
|
||||
"http://acme.example.com/protected",
|
||||
"http://acme.example.com/protected",
|
||||
)
|
||||
# check digest was tried before basic (twice, because
|
||||
# _test_basic_auth called .open() twice)
|
||||
self.assertEqual(opener.recorded, ["digest", "basic"]*2)
|
||||
|
||||
def _test_basic_auth(self, opener, auth_handler, auth_header,
|
||||
realm, http_handler, password_manager,
|
||||
request_url, protected_url):
|
||||
import base64, httplib
|
||||
user, password = "wile", "coyote"
|
||||
opener.add_handler(auth_handler)
|
||||
opener.add_handler(http_handler)
|
||||
|
||||
# .add_password() fed through to password manager
|
||||
auth_handler.add_password(realm, request_url, user, password)
|
||||
|
|
|
@ -1053,8 +1053,8 @@ libreftest = """ Doctest for examples in the library reference: libweakref.tex
|
|||
...
|
||||
>>> obj = Dict(red=1, green=2, blue=3) # this object is weak referencable
|
||||
>>> r = weakref.ref(obj)
|
||||
>>> print r()
|
||||
{'blue': 3, 'green': 2, 'red': 1}
|
||||
>>> print r() is obj
|
||||
True
|
||||
|
||||
>>> import weakref
|
||||
>>> class Object:
|
||||
|
|
|
@ -297,6 +297,10 @@ class OpenerDirector:
|
|||
def add_handler(self, handler):
|
||||
added = False
|
||||
for meth in dir(handler):
|
||||
if meth in ["redirect_request", "do_open", "proxy_open"]:
|
||||
# oops, coincidental match
|
||||
continue
|
||||
|
||||
i = meth.find("_")
|
||||
protocol = meth[:i]
|
||||
condition = meth[i+1:]
|
||||
|
@ -695,32 +699,45 @@ class HTTPPasswordMgr:
|
|||
# uri could be a single URI or a sequence
|
||||
if isinstance(uri, basestring):
|
||||
uri = [uri]
|
||||
uri = tuple(map(self.reduce_uri, uri))
|
||||
if not realm in self.passwd:
|
||||
self.passwd[realm] = {}
|
||||
self.passwd[realm][uri] = (user, passwd)
|
||||
for default_port in True, False:
|
||||
reduced_uri = tuple(
|
||||
[self.reduce_uri(u, default_port) for u in uri])
|
||||
self.passwd[realm][reduced_uri] = (user, passwd)
|
||||
|
||||
def find_user_password(self, realm, authuri):
|
||||
domains = self.passwd.get(realm, {})
|
||||
authuri = self.reduce_uri(authuri)
|
||||
for uris, authinfo in domains.iteritems():
|
||||
for uri in uris:
|
||||
if self.is_suburi(uri, authuri):
|
||||
return authinfo
|
||||
for default_port in True, False:
|
||||
reduced_authuri = self.reduce_uri(authuri, default_port)
|
||||
for uris, authinfo in domains.iteritems():
|
||||
for uri in uris:
|
||||
if self.is_suburi(uri, reduced_authuri):
|
||||
return authinfo
|
||||
return None, None
|
||||
|
||||
def reduce_uri(self, uri):
|
||||
"""Accept netloc or URI and extract only the netloc and path"""
|
||||
def reduce_uri(self, uri, default_port=True):
|
||||
"""Accept authority or URI and extract only the authority and path."""
|
||||
# note HTTP URLs do not have a userinfo component
|
||||
parts = urlparse.urlsplit(uri)
|
||||
if parts[1]:
|
||||
# URI
|
||||
return parts[1], parts[2] or '/'
|
||||
elif parts[0]:
|
||||
# host:port
|
||||
return uri, '/'
|
||||
scheme = parts[0]
|
||||
authority = parts[1]
|
||||
path = parts[2] or '/'
|
||||
else:
|
||||
# host
|
||||
return parts[2], '/'
|
||||
# host or host:port
|
||||
scheme = None
|
||||
authority = uri
|
||||
path = '/'
|
||||
host, port = splitport(authority)
|
||||
if default_port and port is None and scheme is not None:
|
||||
dport = {"http": 80,
|
||||
"https": 443,
|
||||
}.get(scheme)
|
||||
if dport is not None:
|
||||
authority = "%s:%d" % (host, dport)
|
||||
return authority, path
|
||||
|
||||
def is_suburi(self, base, test):
|
||||
"""Check if test is below base in a URI tree
|
||||
|
@ -755,6 +772,10 @@ class AbstractBasicAuthHandler:
|
|||
# www-authenticate header. should probably be a lot more careful
|
||||
# in parsing them to extract multiple alternatives
|
||||
|
||||
# XXX could pre-emptively send auth info already accepted (RFC 2617,
|
||||
# end of section 2, and section 1.2 immediately after "credentials"
|
||||
# production).
|
||||
|
||||
def __init__(self, password_mgr=None):
|
||||
if password_mgr is None:
|
||||
password_mgr = HTTPPasswordMgr()
|
||||
|
@ -964,6 +985,7 @@ class HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
|
|||
"""
|
||||
|
||||
auth_header = 'Authorization'
|
||||
handler_order = 490 # before Basic auth
|
||||
|
||||
def http_error_401(self, req, fp, code, msg, headers):
|
||||
host = urlparse.urlparse(req.get_full_url())[1]
|
||||
|
@ -976,6 +998,7 @@ class HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
|
|||
class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
|
||||
|
||||
auth_header = 'Proxy-Authorization'
|
||||
handler_order = 490 # before Basic auth
|
||||
|
||||
def http_error_407(self, req, fp, code, msg, headers):
|
||||
host = req.get_host()
|
||||
|
|
|
@ -139,7 +139,7 @@ typedef struct DialogObject {
|
|||
PyObject *DlgObj_New(DialogPtr itself)
|
||||
{
|
||||
DialogObject *it;
|
||||
if (itself == NULL) return Py_None;
|
||||
if (itself == NULL) { Py_INCREF(Py_None); return Py_None; }
|
||||
it = PyObject_NEW(DialogObject, &Dialog_Type);
|
||||
if (it == NULL) return NULL;
|
||||
it->ob_itself = itself;
|
||||
|
|
|
@ -202,7 +202,7 @@ class MyObjectDefinition(PEP253Mixin, GlobalObjectDefinition):
|
|||
Output("SetWRefCon(GetDialogWindow(itself), (long)it);")
|
||||
|
||||
def outputCheckNewArg(self):
|
||||
Output("if (itself == NULL) return Py_None;")
|
||||
Output("if (itself == NULL) { Py_INCREF(Py_None); return Py_None; }")
|
||||
|
||||
def outputCheckConvertArg(self):
|
||||
Output("if (v == Py_None) { *p_itself = NULL; return 1; }")
|
||||
|
|
|
@ -153,7 +153,7 @@ typedef struct FSCatalogInfoObject {
|
|||
static PyObject *FSCatalogInfo_New(FSCatalogInfo *itself)
|
||||
{
|
||||
FSCatalogInfoObject *it;
|
||||
if (itself == NULL) return Py_None;
|
||||
if (itself == NULL) { Py_INCREF(Py_None); return Py_None; }
|
||||
it = PyObject_NEW(FSCatalogInfoObject, &FSCatalogInfo_Type);
|
||||
if (it == NULL) return NULL;
|
||||
it->ob_itself = *itself;
|
||||
|
|
|
@ -475,7 +475,7 @@ class FSCatalogInfoDefinition(PEP253Mixin, ObjectDefinition):
|
|||
self.argref = "*" # Store FSSpecs, but pass them by address
|
||||
|
||||
def outputCheckNewArg(self):
|
||||
Output("if (itself == NULL) return Py_None;")
|
||||
Output("if (itself == NULL) { Py_INCREF(Py_None); return Py_None; }")
|
||||
|
||||
def output_tp_newBody(self):
|
||||
Output("PyObject *self;");
|
||||
|
|
|
@ -35,7 +35,7 @@ gestalt_gestalt(PyObject *self, PyObject *args)
|
|||
OSErr iErr;
|
||||
OSType selector;
|
||||
long response;
|
||||
if (!PyArg_Parse(args, "O&", PyMac_GetOSType, &selector))
|
||||
if (!PyArg_ParseTuple(args, "O&", PyMac_GetOSType, &selector))
|
||||
return NULL;
|
||||
iErr = Gestalt ( selector, &response );
|
||||
if (iErr != 0)
|
||||
|
@ -44,7 +44,7 @@ gestalt_gestalt(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static struct PyMethodDef gestalt_methods[] = {
|
||||
{"gestalt", gestalt_gestalt},
|
||||
{"gestalt", gestalt_gestalt, METH_VARARGS},
|
||||
{NULL, NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ Python News
|
|||
|
||||
What's New in Python 3000?
|
||||
==========================
|
||||
|
||||
Build
|
||||
-----
|
||||
|
||||
|
|
|
@ -17,13 +17,19 @@ the format to accommodate documentation needs as they arise.
|
|||
Permissions History
|
||||
-------------------
|
||||
|
||||
- 2006 Summer of Code entries: Matt Fleming was added on 25 May 2006
|
||||
by AMK; he'll be working on enhancing the Python debugger. Jackilyn
|
||||
Hoxworth was added on 25 May 2005 by AMK; she'll be adding logging
|
||||
to the standard library. SoC developers are expected to work
|
||||
- 2006 Summer of Code entries: SoC developers are expected to work
|
||||
primarily in nondist/sandbox or on a branch of their own, and will
|
||||
have their work reviewed before changes are accepted into the trunk.
|
||||
|
||||
- Matt Fleming was added on 25 May 2006 by AMK; he'll be working on
|
||||
enhancing the Python debugger.
|
||||
|
||||
- Jackilyn Hoxworth was added on 25 May 2006 by AMK; she'll be adding logging
|
||||
to the standard library.
|
||||
|
||||
- Mateusz Rukowicz was added on 30 May 2006 by AMK; he'll be
|
||||
translating the decimal module into C.
|
||||
|
||||
- SVN access granted to the "Need for Speed" Iceland sprint attendees,
|
||||
between May 17 and 21, 2006, by Tim Peters. All work is to be done
|
||||
in new sandbox projects or on new branches, with merging to the
|
||||
|
|
|
@ -1041,7 +1041,7 @@ DB_append(DBObject* self, PyObject* args)
|
|||
DBT key, data;
|
||||
DB_TXN *txn = NULL;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "O|O:append", &dataobj, &txnobj))
|
||||
if (!PyArg_UnpackTuple(args, "append", 1, 2, &dataobj, &txnobj))
|
||||
return NULL;
|
||||
|
||||
CHECK_DB_NOT_CLOSED(self);
|
||||
|
@ -2895,7 +2895,7 @@ DB_keys(DBObject* self, PyObject* args)
|
|||
PyObject* txnobj = NULL;
|
||||
DB_TXN *txn = NULL;
|
||||
|
||||
if (!PyArg_ParseTuple(args,"|O:keys", &txnobj))
|
||||
if (!PyArg_UnpackTuple(args, "keys", 0, 1, &txnobj))
|
||||
return NULL;
|
||||
if (!checkTxnObj(txnobj, &txn))
|
||||
return NULL;
|
||||
|
@ -2909,7 +2909,7 @@ DB_items(DBObject* self, PyObject* args)
|
|||
PyObject* txnobj = NULL;
|
||||
DB_TXN *txn = NULL;
|
||||
|
||||
if (!PyArg_ParseTuple(args,"|O:items", &txnobj))
|
||||
if (!PyArg_UnpackTuple(args, "items", 0, 1, &txnobj))
|
||||
return NULL;
|
||||
if (!checkTxnObj(txnobj, &txn))
|
||||
return NULL;
|
||||
|
@ -2923,7 +2923,7 @@ DB_values(DBObject* self, PyObject* args)
|
|||
PyObject* txnobj = NULL;
|
||||
DB_TXN *txn = NULL;
|
||||
|
||||
if (!PyArg_ParseTuple(args,"|O:values", &txnobj))
|
||||
if (!PyArg_UnpackTuple(args, "values", 0, 1, &txnobj))
|
||||
return NULL;
|
||||
if (!checkTxnObj(txnobj, &txn))
|
||||
return NULL;
|
||||
|
|
|
@ -48,21 +48,12 @@ one argument, the encoding name in all lower case letters, and return\n\
|
|||
a tuple of functions (encoder, decoder, stream_reader, stream_writer).");
|
||||
|
||||
static
|
||||
PyObject *codec_register(PyObject *self, PyObject *args)
|
||||
PyObject *codec_register(PyObject *self, PyObject *search_function)
|
||||
{
|
||||
PyObject *search_function;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "O:register", &search_function))
|
||||
goto onError;
|
||||
|
||||
if (PyCodec_Register(search_function))
|
||||
goto onError;
|
||||
return NULL;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
|
||||
onError:
|
||||
return NULL;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(lookup__doc__,
|
||||
|
@ -77,12 +68,9 @@ PyObject *codec_lookup(PyObject *self, PyObject *args)
|
|||
char *encoding;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "s:lookup", &encoding))
|
||||
goto onError;
|
||||
return NULL;
|
||||
|
||||
return _PyCodec_Lookup(encoding);
|
||||
|
||||
onError:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(encode__doc__,
|
||||
|
@ -116,13 +104,7 @@ codec_encode(PyObject *self, PyObject *args)
|
|||
#endif
|
||||
|
||||
/* Encode via the codec registry */
|
||||
v = PyCodec_Encode(v, encoding, errors);
|
||||
if (v == NULL)
|
||||
goto onError;
|
||||
return v;
|
||||
|
||||
onError:
|
||||
return NULL;
|
||||
return PyCodec_Encode(v, encoding, errors);
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(decode__doc__,
|
||||
|
@ -156,13 +138,7 @@ codec_decode(PyObject *self, PyObject *args)
|
|||
#endif
|
||||
|
||||
/* Decode via the codec registry */
|
||||
v = PyCodec_Decode(v, encoding, errors);
|
||||
if (v == NULL)
|
||||
goto onError;
|
||||
return v;
|
||||
|
||||
onError:
|
||||
return NULL;
|
||||
return PyCodec_Decode(v, encoding, errors);
|
||||
}
|
||||
|
||||
/* --- Helpers ------------------------------------------------------------ */
|
||||
|
@ -171,22 +147,11 @@ static
|
|||
PyObject *codec_tuple(PyObject *unicode,
|
||||
Py_ssize_t len)
|
||||
{
|
||||
PyObject *v,*w;
|
||||
|
||||
PyObject *v;
|
||||
if (unicode == NULL)
|
||||
return NULL;
|
||||
v = PyTuple_New(2);
|
||||
if (v == NULL) {
|
||||
Py_DECREF(unicode);
|
||||
return NULL;
|
||||
}
|
||||
PyTuple_SET_ITEM(v,0,unicode);
|
||||
w = PyInt_FromSsize_t(len);
|
||||
if (w == NULL) {
|
||||
Py_DECREF(v);
|
||||
return NULL;
|
||||
}
|
||||
PyTuple_SET_ITEM(v,1,w);
|
||||
return NULL;
|
||||
v = Py_BuildValue("On", unicode, len);
|
||||
Py_DECREF(unicode);
|
||||
return v;
|
||||
}
|
||||
|
||||
|
@ -419,7 +384,7 @@ utf_16_ex_decode(PyObject *self,
|
|||
final ? NULL : &consumed);
|
||||
if (unicode == NULL)
|
||||
return NULL;
|
||||
tuple = Py_BuildValue("Oii", unicode, consumed, byteorder);
|
||||
tuple = Py_BuildValue("Oni", unicode, consumed, byteorder);
|
||||
Py_DECREF(unicode);
|
||||
return tuple;
|
||||
}
|
||||
|
@ -604,8 +569,8 @@ utf_7_encode(PyObject *self,
|
|||
return NULL;
|
||||
v = codec_tuple(PyUnicode_EncodeUTF7(PyUnicode_AS_UNICODE(str),
|
||||
PyUnicode_GET_SIZE(str),
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
errors),
|
||||
PyUnicode_GET_SIZE(str));
|
||||
Py_DECREF(str);
|
||||
|
@ -876,8 +841,7 @@ static PyObject *register_error(PyObject *self, PyObject *args)
|
|||
return NULL;
|
||||
if (PyCodec_RegisterError(name, handler))
|
||||
return NULL;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(lookup_error__doc__,
|
||||
|
@ -899,7 +863,7 @@ static PyObject *lookup_error(PyObject *self, PyObject *args)
|
|||
/* --- Module API --------------------------------------------------------- */
|
||||
|
||||
static PyMethodDef _codecs_functions[] = {
|
||||
{"register", codec_register, METH_VARARGS,
|
||||
{"register", codec_register, METH_O,
|
||||
register__doc__},
|
||||
{"lookup", codec_lookup, METH_VARARGS,
|
||||
lookup__doc__},
|
||||
|
|
|
@ -2185,7 +2185,7 @@ _CData_set(CDataObject *dst, PyObject *type, SETFUNC setfunc, PyObject *value,
|
|||
only it's object list. So we create a tuple, containing
|
||||
b_objects list PLUS the array itself, and return that!
|
||||
*/
|
||||
return PyTuple_Pack(2, keep, value);
|
||||
return Py_BuildValue("(OO)", keep, value);
|
||||
}
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"incompatible types, %s instance instead of %s instance",
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
#include "Python.h"
|
||||
#include "structmember.h"
|
||||
|
||||
/* Functional module written and maintained
|
||||
/* _functools module written and maintained
|
||||
by Hye-Shik Chang <perky@FreeBSD.org>
|
||||
with adaptations by Raymond Hettinger <python@rcn.com>
|
||||
Copyright (c) 2004, 2005 Python Software Foundation.
|
||||
Copyright (c) 2004, 2005, 2006 Python Software Foundation.
|
||||
All rights reserved.
|
||||
*/
|
||||
|
||||
|
@ -199,7 +199,7 @@ static PyGetSetDef partial_getsetlist[] = {
|
|||
static PyTypeObject partial_type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /* ob_size */
|
||||
"functional.partial", /* tp_name */
|
||||
"functools.partial", /* tp_name */
|
||||
sizeof(partialobject), /* tp_basicsize */
|
||||
0, /* tp_itemsize */
|
||||
/* methods */
|
||||
|
@ -245,14 +245,14 @@ static PyTypeObject partial_type = {
|
|||
/* module level code ********************************************************/
|
||||
|
||||
PyDoc_STRVAR(module_doc,
|
||||
"Tools for functional programming.");
|
||||
"Tools that operate on functions.");
|
||||
|
||||
static PyMethodDef module_methods[] = {
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
PyMODINIT_FUNC
|
||||
initfunctional(void)
|
||||
init_functools(void)
|
||||
{
|
||||
int i;
|
||||
PyObject *m;
|
||||
|
@ -262,7 +262,7 @@ initfunctional(void)
|
|||
NULL
|
||||
};
|
||||
|
||||
m = Py_InitModule3("functional", module_methods, module_doc);
|
||||
m = Py_InitModule3("_functools", module_methods, module_doc);
|
||||
if (m == NULL)
|
||||
return;
|
||||
|
|
@ -77,13 +77,10 @@ EVP_dealloc(PyObject *ptr)
|
|||
PyDoc_STRVAR(EVP_copy__doc__, "Return a copy of the hash object.");
|
||||
|
||||
static PyObject *
|
||||
EVP_copy(EVPobject *self, PyObject *args)
|
||||
EVP_copy(EVPobject *self, PyObject *unused)
|
||||
{
|
||||
EVPobject *newobj;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":copy"))
|
||||
return NULL;
|
||||
|
||||
if ( (newobj = newEVPobject(self->name))==NULL)
|
||||
return NULL;
|
||||
|
||||
|
@ -95,16 +92,13 @@ PyDoc_STRVAR(EVP_digest__doc__,
|
|||
"Return the digest value as a string of binary data.");
|
||||
|
||||
static PyObject *
|
||||
EVP_digest(EVPobject *self, PyObject *args)
|
||||
EVP_digest(EVPobject *self, PyObject *unused)
|
||||
{
|
||||
unsigned char digest[EVP_MAX_MD_SIZE];
|
||||
EVP_MD_CTX temp_ctx;
|
||||
PyObject *retval;
|
||||
unsigned int digest_size;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":digest"))
|
||||
return NULL;
|
||||
|
||||
EVP_MD_CTX_copy(&temp_ctx, &self->ctx);
|
||||
digest_size = EVP_MD_CTX_size(&temp_ctx);
|
||||
EVP_DigestFinal(&temp_ctx, digest, NULL);
|
||||
|
@ -118,7 +112,7 @@ PyDoc_STRVAR(EVP_hexdigest__doc__,
|
|||
"Return the digest value as a string of hexadecimal digits.");
|
||||
|
||||
static PyObject *
|
||||
EVP_hexdigest(EVPobject *self, PyObject *args)
|
||||
EVP_hexdigest(EVPobject *self, PyObject *unused)
|
||||
{
|
||||
unsigned char digest[EVP_MAX_MD_SIZE];
|
||||
EVP_MD_CTX temp_ctx;
|
||||
|
@ -126,9 +120,6 @@ EVP_hexdigest(EVPobject *self, PyObject *args)
|
|||
char *hex_digest;
|
||||
unsigned int i, j, digest_size;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":hexdigest"))
|
||||
return NULL;
|
||||
|
||||
/* Get the raw (binary) digest value */
|
||||
EVP_MD_CTX_copy(&temp_ctx, &self->ctx);
|
||||
digest_size = EVP_MD_CTX_size(&temp_ctx);
|
||||
|
@ -182,9 +173,9 @@ EVP_update(EVPobject *self, PyObject *args)
|
|||
|
||||
static PyMethodDef EVP_methods[] = {
|
||||
{"update", (PyCFunction)EVP_update, METH_VARARGS, EVP_update__doc__},
|
||||
{"digest", (PyCFunction)EVP_digest, METH_VARARGS, EVP_digest__doc__},
|
||||
{"hexdigest", (PyCFunction)EVP_hexdigest, METH_VARARGS, EVP_hexdigest__doc__},
|
||||
{"copy", (PyCFunction)EVP_copy, METH_VARARGS, EVP_copy__doc__},
|
||||
{"digest", (PyCFunction)EVP_digest, METH_NOARGS, EVP_digest__doc__},
|
||||
{"hexdigest", (PyCFunction)EVP_hexdigest, METH_NOARGS, EVP_hexdigest__doc__},
|
||||
{"copy", (PyCFunction)EVP_copy, METH_NOARGS, EVP_copy__doc__},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
|
@ -1058,7 +1058,7 @@ profiler_runcall(ProfilerObject *self, PyObject *args)
|
|||
PyObject *callkw = NULL;
|
||||
PyObject *callable;
|
||||
|
||||
if (PyArg_ParseTuple(args, "O|OO:runcall",
|
||||
if (PyArg_UnpackTuple(args, "runcall", 1, 3,
|
||||
&callable, &callargs, &callkw)) {
|
||||
if (is_available(self)) {
|
||||
do_start(self);
|
||||
|
@ -1575,23 +1575,18 @@ PyDoc_STR(
|
|||
;
|
||||
|
||||
static PyObject *
|
||||
hotshot_resolution(PyObject *unused, PyObject *args)
|
||||
hotshot_resolution(PyObject *self, PyObject *unused)
|
||||
{
|
||||
PyObject *result = NULL;
|
||||
|
||||
if (PyArg_ParseTuple(args, ":resolution")) {
|
||||
if (timeofday_diff == 0) {
|
||||
calibrate();
|
||||
calibrate();
|
||||
calibrate();
|
||||
}
|
||||
#ifdef MS_WINDOWS
|
||||
result = Py_BuildValue("ii", timeofday_diff, frequency.LowPart);
|
||||
#else
|
||||
result = Py_BuildValue("ii", timeofday_diff, rusage_diff);
|
||||
#endif
|
||||
if (timeofday_diff == 0) {
|
||||
calibrate();
|
||||
calibrate();
|
||||
calibrate();
|
||||
}
|
||||
return result;
|
||||
#ifdef MS_WINDOWS
|
||||
return Py_BuildValue("ii", timeofday_diff, frequency.LowPart);
|
||||
#else
|
||||
return Py_BuildValue("ii", timeofday_diff, rusage_diff);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -1599,7 +1594,7 @@ static PyMethodDef functions[] = {
|
|||
{"coverage", hotshot_coverage, METH_VARARGS, coverage__doc__},
|
||||
{"profiler", hotshot_profiler, METH_VARARGS, profiler__doc__},
|
||||
{"logreader", hotshot_logreader, METH_VARARGS, logreader__doc__},
|
||||
{"resolution", hotshot_resolution, METH_VARARGS, resolution__doc__},
|
||||
{"resolution", hotshot_resolution, METH_NOARGS, resolution__doc__},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -281,7 +281,7 @@ PyLocale_strcoll(PyObject* self, PyObject* args)
|
|||
wchar_t *ws1 = NULL, *ws2 = NULL;
|
||||
int rel1 = 0, rel2 = 0, len1, len2;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "OO:strcoll", &os1, &os2))
|
||||
if (!PyArg_UnpackTuple(args, "strcoll", 2, 2, &os1, &os2))
|
||||
return NULL;
|
||||
/* If both arguments are byte strings, use strcoll. */
|
||||
if (PyString_Check(os1) && PyString_Check(os2))
|
||||
|
|
|
@ -280,21 +280,25 @@ PyMODINIT_FUNC init_sqlite3(void)
|
|||
goto error;
|
||||
}
|
||||
PyDict_SetItemString(dict, "PARSE_DECLTYPES", tmp_obj);
|
||||
Py_DECREF(tmp_obj);
|
||||
|
||||
if (!(tmp_obj = PyInt_FromLong(PARSE_COLNAMES))) {
|
||||
goto error;
|
||||
}
|
||||
PyDict_SetItemString(dict, "PARSE_COLNAMES", tmp_obj);
|
||||
Py_DECREF(tmp_obj);
|
||||
|
||||
if (!(tmp_obj = PyString_FromString(PYSQLITE_VERSION))) {
|
||||
goto error;
|
||||
}
|
||||
PyDict_SetItemString(dict, "version", tmp_obj);
|
||||
Py_DECREF(tmp_obj);
|
||||
|
||||
if (!(tmp_obj = PyString_FromString(sqlite3_libversion()))) {
|
||||
goto error;
|
||||
}
|
||||
PyDict_SetItemString(dict, "sqlite_version", tmp_obj);
|
||||
Py_DECREF(tmp_obj);
|
||||
|
||||
/* initialize microprotocols layer */
|
||||
microprotocols_init(dict);
|
||||
|
|
|
@ -1623,7 +1623,7 @@ static PyObject*pattern_new_match(PatternObject*, SRE_STATE*, int);
|
|||
static PyObject*pattern_scanner(PatternObject*, PyObject*);
|
||||
|
||||
static PyObject *
|
||||
sre_codesize(PyObject* self, PyObject* args)
|
||||
sre_codesize(PyObject* self, PyObject *unused)
|
||||
{
|
||||
return Py_BuildValue("i", sizeof(SRE_CODE));
|
||||
}
|
||||
|
@ -2467,15 +2467,12 @@ pattern_subn(PatternObject* self, PyObject* args, PyObject* kw)
|
|||
}
|
||||
|
||||
static PyObject*
|
||||
pattern_copy(PatternObject* self, PyObject* args)
|
||||
pattern_copy(PatternObject* self, PyObject *unused)
|
||||
{
|
||||
#ifdef USE_BUILTIN_COPY
|
||||
PatternObject* copy;
|
||||
int offset;
|
||||
|
||||
if (args != Py_None && !PyArg_ParseTuple(args, ":__copy__"))
|
||||
return NULL;
|
||||
|
||||
copy = PyObject_NEW_VAR(PatternObject, &Pattern_Type, self->codesize);
|
||||
if (!copy)
|
||||
return NULL;
|
||||
|
@ -2498,16 +2495,12 @@ pattern_copy(PatternObject* self, PyObject* args)
|
|||
}
|
||||
|
||||
static PyObject*
|
||||
pattern_deepcopy(PatternObject* self, PyObject* args)
|
||||
pattern_deepcopy(PatternObject* self, PyObject* memo)
|
||||
{
|
||||
#ifdef USE_BUILTIN_COPY
|
||||
PatternObject* copy;
|
||||
|
||||
PyObject* memo;
|
||||
if (!PyArg_ParseTuple(args, "O:__deepcopy__", &memo))
|
||||
return NULL;
|
||||
|
||||
copy = (PatternObject*) pattern_copy(self, Py_None);
|
||||
copy = (PatternObject*) pattern_copy(self);
|
||||
if (!copy)
|
||||
return NULL;
|
||||
|
||||
|
@ -2578,8 +2571,8 @@ static PyMethodDef pattern_methods[] = {
|
|||
pattern_finditer_doc},
|
||||
#endif
|
||||
{"scanner", (PyCFunction) pattern_scanner, METH_VARARGS},
|
||||
{"__copy__", (PyCFunction) pattern_copy, METH_VARARGS},
|
||||
{"__deepcopy__", (PyCFunction) pattern_deepcopy, METH_VARARGS},
|
||||
{"__copy__", (PyCFunction) pattern_copy, METH_NOARGS},
|
||||
{"__deepcopy__", (PyCFunction) pattern_deepcopy, METH_O},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
@ -2772,12 +2765,8 @@ match_getslice(MatchObject* self, PyObject* index, PyObject* def)
|
|||
}
|
||||
|
||||
static PyObject*
|
||||
match_expand(MatchObject* self, PyObject* args)
|
||||
match_expand(MatchObject* self, PyObject* ptemplate)
|
||||
{
|
||||
PyObject* ptemplate;
|
||||
if (!PyArg_ParseTuple(args, "O:expand", &ptemplate))
|
||||
return NULL;
|
||||
|
||||
/* delegate to Python code */
|
||||
return call(
|
||||
SRE_PY_MODULE, "_expand",
|
||||
|
@ -2902,7 +2891,7 @@ match_start(MatchObject* self, PyObject* args)
|
|||
int index;
|
||||
|
||||
PyObject* index_ = Py_False; /* zero */
|
||||
if (!PyArg_ParseTuple(args, "|O:start", &index_))
|
||||
if (!PyArg_UnpackTuple(args, "start", 0, 1, &index_))
|
||||
return NULL;
|
||||
|
||||
index = match_getindex(self, index_);
|
||||
|
@ -2925,7 +2914,7 @@ match_end(MatchObject* self, PyObject* args)
|
|||
int index;
|
||||
|
||||
PyObject* index_ = Py_False; /* zero */
|
||||
if (!PyArg_ParseTuple(args, "|O:end", &index_))
|
||||
if (!PyArg_UnpackTuple(args, "end", 0, 1, &index_))
|
||||
return NULL;
|
||||
|
||||
index = match_getindex(self, index_);
|
||||
|
@ -2975,7 +2964,7 @@ match_span(MatchObject* self, PyObject* args)
|
|||
int index;
|
||||
|
||||
PyObject* index_ = Py_False; /* zero */
|
||||
if (!PyArg_ParseTuple(args, "|O:span", &index_))
|
||||
if (!PyArg_UnpackTuple(args, "span", 0, 1, &index_))
|
||||
return NULL;
|
||||
|
||||
index = match_getindex(self, index_);
|
||||
|
@ -3019,15 +3008,12 @@ match_regs(MatchObject* self)
|
|||
}
|
||||
|
||||
static PyObject*
|
||||
match_copy(MatchObject* self, PyObject* args)
|
||||
match_copy(MatchObject* self, PyObject *unused)
|
||||
{
|
||||
#ifdef USE_BUILTIN_COPY
|
||||
MatchObject* copy;
|
||||
int slots, offset;
|
||||
|
||||
if (args != Py_None && !PyArg_ParseTuple(args, ":__copy__"))
|
||||
return NULL;
|
||||
|
||||
slots = 2 * (self->pattern->groups+1);
|
||||
|
||||
copy = PyObject_NEW_VAR(MatchObject, &Match_Type, slots);
|
||||
|
@ -3053,16 +3039,12 @@ match_copy(MatchObject* self, PyObject* args)
|
|||
}
|
||||
|
||||
static PyObject*
|
||||
match_deepcopy(MatchObject* self, PyObject* args)
|
||||
match_deepcopy(MatchObject* self, PyObject* memo)
|
||||
{
|
||||
#ifdef USE_BUILTIN_COPY
|
||||
MatchObject* copy;
|
||||
|
||||
PyObject* memo;
|
||||
if (!PyArg_ParseTuple(args, "O:__deepcopy__", &memo))
|
||||
return NULL;
|
||||
|
||||
copy = (MatchObject*) match_copy(self, Py_None);
|
||||
copy = (MatchObject*) match_copy(self);
|
||||
if (!copy)
|
||||
return NULL;
|
||||
|
||||
|
@ -3086,9 +3068,9 @@ static PyMethodDef match_methods[] = {
|
|||
{"span", (PyCFunction) match_span, METH_VARARGS},
|
||||
{"groups", (PyCFunction) match_groups, METH_VARARGS|METH_KEYWORDS},
|
||||
{"groupdict", (PyCFunction) match_groupdict, METH_VARARGS|METH_KEYWORDS},
|
||||
{"expand", (PyCFunction) match_expand, METH_VARARGS},
|
||||
{"__copy__", (PyCFunction) match_copy, METH_VARARGS},
|
||||
{"__deepcopy__", (PyCFunction) match_deepcopy, METH_VARARGS},
|
||||
{"expand", (PyCFunction) match_expand, METH_O},
|
||||
{"__copy__", (PyCFunction) match_copy, METH_NOARGS},
|
||||
{"__deepcopy__", (PyCFunction) match_deepcopy, METH_O},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
@ -3243,7 +3225,7 @@ scanner_dealloc(ScannerObject* self)
|
|||
}
|
||||
|
||||
static PyObject*
|
||||
scanner_match(ScannerObject* self, PyObject* args)
|
||||
scanner_match(ScannerObject* self, PyObject *unused)
|
||||
{
|
||||
SRE_STATE* state = &self->state;
|
||||
PyObject* match;
|
||||
|
@ -3274,7 +3256,7 @@ scanner_match(ScannerObject* self, PyObject* args)
|
|||
|
||||
|
||||
static PyObject*
|
||||
scanner_search(ScannerObject* self, PyObject* args)
|
||||
scanner_search(ScannerObject* self, PyObject *unused)
|
||||
{
|
||||
SRE_STATE* state = &self->state;
|
||||
PyObject* match;
|
||||
|
@ -3304,10 +3286,8 @@ scanner_search(ScannerObject* self, PyObject* args)
|
|||
}
|
||||
|
||||
static PyMethodDef scanner_methods[] = {
|
||||
/* FIXME: use METH_OLDARGS instead of 0 or fix to use METH_VARARGS */
|
||||
/* METH_OLDARGS is not in Python 1.5.2 */
|
||||
{"match", (PyCFunction) scanner_match, 0},
|
||||
{"search", (PyCFunction) scanner_search, 0},
|
||||
{"match", (PyCFunction) scanner_match, METH_NOARGS},
|
||||
{"search", (PyCFunction) scanner_search, METH_NOARGS},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
@ -3373,7 +3353,7 @@ pattern_scanner(PatternObject* pattern, PyObject* args)
|
|||
|
||||
static PyMethodDef _functions[] = {
|
||||
{"compile", _compile, METH_VARARGS},
|
||||
{"getcodesize", sre_codesize, METH_VARARGS},
|
||||
{"getcodesize", sre_codesize, METH_NOARGS},
|
||||
{"getlower", sre_getlower, METH_VARARGS},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
|
|
@ -17,6 +17,20 @@ static PyTypeObject PyStructType;
|
|||
typedef int Py_ssize_t;
|
||||
#endif
|
||||
|
||||
/* If PY_STRUCT_OVERFLOW_MASKING is defined, the struct module will wrap all input
|
||||
numbers for explicit endians such that they fit in the given type, much
|
||||
like explicit casting in C. A warning will be raised if the number did
|
||||
not originally fit within the range of the requested type. If it is
|
||||
not defined, then all range errors and overflow will be struct.error
|
||||
exceptions. */
|
||||
|
||||
#define PY_STRUCT_OVERFLOW_MASKING 1
|
||||
|
||||
#ifdef PY_STRUCT_OVERFLOW_MASKING
|
||||
static PyObject *pylong_ulong_mask = NULL;
|
||||
static PyObject *pyint_zero = NULL;
|
||||
#endif
|
||||
|
||||
/* The translation function for each format character is table driven */
|
||||
typedef struct _formatdef {
|
||||
char format;
|
||||
|
@ -195,6 +209,75 @@ get_ulonglong(PyObject *v, unsigned PY_LONG_LONG *p)
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef PY_STRUCT_OVERFLOW_MASKING
|
||||
|
||||
/* Helper routine to get a Python integer and raise the appropriate error
|
||||
if it isn't one */
|
||||
|
||||
static int
|
||||
get_wrapped_long(PyObject *v, long *p)
|
||||
{
|
||||
if (get_long(v, p) < 0) {
|
||||
if (PyLong_Check(v) && PyErr_ExceptionMatches(PyExc_OverflowError)) {
|
||||
PyObject *wrapped;
|
||||
long x;
|
||||
PyErr_Clear();
|
||||
if (PyErr_Warn(PyExc_DeprecationWarning, "struct integer overflow masking is deprecated") < 0)
|
||||
return -1;
|
||||
wrapped = PyNumber_And(v, pylong_ulong_mask);
|
||||
if (wrapped == NULL)
|
||||
return -1;
|
||||
x = (long)PyLong_AsUnsignedLong(wrapped);
|
||||
Py_DECREF(wrapped);
|
||||
if (x == -1 && PyErr_Occurred())
|
||||
return -1;
|
||||
*p = x;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
get_wrapped_ulong(PyObject *v, unsigned long *p)
|
||||
{
|
||||
long x = (long)PyLong_AsUnsignedLong(v);
|
||||
if (x == -1 && PyErr_Occurred()) {
|
||||
PyObject *wrapped;
|
||||
PyErr_Clear();
|
||||
wrapped = PyNumber_And(v, pylong_ulong_mask);
|
||||
if (wrapped == NULL)
|
||||
return -1;
|
||||
if (PyErr_Warn(PyExc_DeprecationWarning, "struct integer overflow masking is deprecated") < 0) {
|
||||
Py_DECREF(wrapped);
|
||||
return -1;
|
||||
}
|
||||
x = (long)PyLong_AsUnsignedLong(wrapped);
|
||||
Py_DECREF(wrapped);
|
||||
if (x == -1 && PyErr_Occurred())
|
||||
return -1;
|
||||
}
|
||||
*p = (unsigned long)x;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define RANGE_ERROR(x, f, flag, mask) \
|
||||
do { \
|
||||
if (_range_error(f, flag) < 0) \
|
||||
return -1; \
|
||||
else \
|
||||
(x) &= (mask); \
|
||||
} while (0)
|
||||
|
||||
#else
|
||||
|
||||
#define get_wrapped_long get_long
|
||||
#define get_wrapped_ulong get_ulong
|
||||
#define RANGE_ERROR(x, f, flag, mask) return _range_error(f, flag)
|
||||
|
||||
#endif
|
||||
|
||||
/* Floating point helpers */
|
||||
|
||||
static PyObject *
|
||||
|
@ -223,30 +306,51 @@ unpack_double(const char *p, /* start of 8-byte string */
|
|||
|
||||
/* Helper to format the range error exceptions */
|
||||
static int
|
||||
_range_error(char format, Py_ssize_t size, int is_unsigned)
|
||||
_range_error(const formatdef *f, int is_unsigned)
|
||||
{
|
||||
if (is_unsigned == 0) {
|
||||
long smallest = 0, largest = 0;
|
||||
Py_ssize_t i = size * 8;
|
||||
while (--i > 0) {
|
||||
smallest = (smallest * 2) - 1;
|
||||
largest = (largest * 2) + 1;
|
||||
}
|
||||
/* ulargest is the largest unsigned value with f->size bytes.
|
||||
* Note that the simpler:
|
||||
* ((size_t)1 << (f->size * 8)) - 1
|
||||
* doesn't work when f->size == sizeof(size_t) because C doesn't
|
||||
* define what happens when a left shift count is >= the number of
|
||||
* bits in the integer being shifted; e.g., on some boxes it doesn't
|
||||
* shift at all when they're equal.
|
||||
*/
|
||||
const size_t ulargest = (size_t)-1 >> ((SIZEOF_SIZE_T - f->size)*8);
|
||||
assert(f->size >= 1 && f->size <= SIZEOF_SIZE_T);
|
||||
if (is_unsigned)
|
||||
PyErr_Format(StructError,
|
||||
"'%c' format requires %ld <= number <= %ld",
|
||||
format,
|
||||
smallest,
|
||||
largest);
|
||||
} else {
|
||||
unsigned long largest = 0;
|
||||
Py_ssize_t i = size * 8;
|
||||
while (--i >= 0)
|
||||
largest = (largest * 2) + 1;
|
||||
"'%c' format requires 0 <= number <= %zu",
|
||||
f->format,
|
||||
ulargest);
|
||||
else {
|
||||
const Py_ssize_t largest = (Py_ssize_t)(ulargest >> 1);
|
||||
PyErr_Format(StructError,
|
||||
"'%c' format requires 0 <= number <= %lu",
|
||||
format,
|
||||
"'%c' format requires %zd <= number <= %zd",
|
||||
f->format,
|
||||
~ largest,
|
||||
largest);
|
||||
}
|
||||
#ifdef PY_STRUCT_OVERFLOW_MASKING
|
||||
{
|
||||
PyObject *ptype, *pvalue, *ptraceback;
|
||||
PyObject *msg;
|
||||
int rval;
|
||||
PyErr_Fetch(&ptype, &pvalue, &ptraceback);
|
||||
assert(pvalue != NULL);
|
||||
msg = PyObject_Str(pvalue);
|
||||
Py_XDECREF(ptype);
|
||||
Py_XDECREF(pvalue);
|
||||
Py_XDECREF(ptraceback);
|
||||
if (msg == NULL)
|
||||
return -1;
|
||||
rval = PyErr_Warn(PyExc_DeprecationWarning,
|
||||
PyString_AS_STRING(msg));
|
||||
Py_DECREF(msg);
|
||||
if (rval == 0)
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -482,7 +586,7 @@ np_int(char *p, PyObject *v, const formatdef *f)
|
|||
return -1;
|
||||
#if (SIZEOF_LONG > SIZEOF_INT)
|
||||
if ((x < ((long)INT_MIN)) || (x > ((long)INT_MAX)))
|
||||
return _range_error(f->format, sizeof(y), 0);
|
||||
return _range_error(f, 0);
|
||||
#endif
|
||||
y = (int)x;
|
||||
memcpy(p, (char *)&y, sizeof y);
|
||||
|
@ -495,11 +599,11 @@ np_uint(char *p, PyObject *v, const formatdef *f)
|
|||
unsigned long x;
|
||||
unsigned int y;
|
||||
if (get_ulong(v, &x) < 0)
|
||||
return _range_error(f->format, sizeof(y), 1);
|
||||
return _range_error(f, 1);
|
||||
y = (unsigned int)x;
|
||||
#if (SIZEOF_LONG > SIZEOF_INT)
|
||||
if (x > ((unsigned long)UINT_MAX))
|
||||
return _range_error(f->format, sizeof(y), 1);
|
||||
return _range_error(f, 1);
|
||||
#endif
|
||||
memcpy(p, (char *)&y, sizeof y);
|
||||
return 0;
|
||||
|
@ -520,7 +624,7 @@ np_ulong(char *p, PyObject *v, const formatdef *f)
|
|||
{
|
||||
unsigned long x;
|
||||
if (get_ulong(v, &x) < 0)
|
||||
return _range_error(f->format, sizeof(x), 1);
|
||||
return _range_error(f, 1);
|
||||
memcpy(p, (char *)&x, sizeof x);
|
||||
return 0;
|
||||
}
|
||||
|
@ -621,8 +725,9 @@ bu_int(const char *p, const formatdef *f)
|
|||
{
|
||||
long x = 0;
|
||||
Py_ssize_t i = f->size;
|
||||
const unsigned char *bytes = (const unsigned char *)p;
|
||||
do {
|
||||
x = (x<<8) | (*p++ & 0xFF);
|
||||
x = (x<<8) | *bytes++;
|
||||
} while (--i > 0);
|
||||
/* Extend the sign bit. */
|
||||
if (SIZEOF_LONG > f->size)
|
||||
|
@ -635,8 +740,9 @@ bu_uint(const char *p, const formatdef *f)
|
|||
{
|
||||
unsigned long x = 0;
|
||||
Py_ssize_t i = f->size;
|
||||
const unsigned char *bytes = (const unsigned char *)p;
|
||||
do {
|
||||
x = (x<<8) | (*p++ & 0xFF);
|
||||
x = (x<<8) | *bytes++;
|
||||
} while (--i > 0);
|
||||
if (x <= LONG_MAX)
|
||||
return PyInt_FromLong((long)x);
|
||||
|
@ -649,8 +755,9 @@ bu_longlong(const char *p, const formatdef *f)
|
|||
#ifdef HAVE_LONG_LONG
|
||||
PY_LONG_LONG x = 0;
|
||||
Py_ssize_t i = f->size;
|
||||
const unsigned char *bytes = (const unsigned char *)p;
|
||||
do {
|
||||
x = (x<<8) | (*p++ & 0xFF);
|
||||
x = (x<<8) | *bytes++;
|
||||
} while (--i > 0);
|
||||
/* Extend the sign bit. */
|
||||
if (SIZEOF_LONG_LONG > f->size)
|
||||
|
@ -672,8 +779,9 @@ bu_ulonglong(const char *p, const formatdef *f)
|
|||
#ifdef HAVE_LONG_LONG
|
||||
unsigned PY_LONG_LONG x = 0;
|
||||
Py_ssize_t i = f->size;
|
||||
const unsigned char *bytes = (const unsigned char *)p;
|
||||
do {
|
||||
x = (x<<8) | (*p++ & 0xFF);
|
||||
x = (x<<8) | *bytes++;
|
||||
} while (--i > 0);
|
||||
if (x <= LONG_MAX)
|
||||
return PyInt_FromLong(Py_SAFE_DOWNCAST(x, unsigned PY_LONG_LONG, long));
|
||||
|
@ -703,15 +811,19 @@ bp_int(char *p, PyObject *v, const formatdef *f)
|
|||
{
|
||||
long x;
|
||||
Py_ssize_t i;
|
||||
if (get_long(v, &x) < 0)
|
||||
if (get_wrapped_long(v, &x) < 0)
|
||||
return -1;
|
||||
i = f->size;
|
||||
if (i != SIZEOF_LONG) {
|
||||
if ((i == 2) && (x < -32768 || x > 32767))
|
||||
return _range_error(f->format, i, 0);
|
||||
RANGE_ERROR(x, f, 0, 0xffffL);
|
||||
#if (SIZEOF_LONG != 4)
|
||||
else if ((i == 4) && (x < -2147483648L || x > 2147483647L))
|
||||
return _range_error(f->format, i, 0);
|
||||
RANGE_ERROR(x, f, 0, 0xffffffffL);
|
||||
#endif
|
||||
#ifdef PY_STRUCT_OVERFLOW_MASKING
|
||||
else if ((i == 1) && (x < -128 || x > 127))
|
||||
RANGE_ERROR(x, f, 0, 0xffL);
|
||||
#endif
|
||||
}
|
||||
do {
|
||||
|
@ -726,14 +838,14 @@ bp_uint(char *p, PyObject *v, const formatdef *f)
|
|||
{
|
||||
unsigned long x;
|
||||
Py_ssize_t i;
|
||||
if (get_ulong(v, &x) < 0)
|
||||
if (get_wrapped_ulong(v, &x) < 0)
|
||||
return -1;
|
||||
i = f->size;
|
||||
if (i != SIZEOF_LONG) {
|
||||
unsigned long maxint = 1;
|
||||
maxint <<= (unsigned long)(i * 8);
|
||||
if (x >= maxint)
|
||||
return _range_error(f->format, f->size, 1);
|
||||
RANGE_ERROR(x, f, 1, maxint - 1);
|
||||
}
|
||||
do {
|
||||
p[--i] = (char)x;
|
||||
|
@ -800,8 +912,14 @@ bp_double(char *p, PyObject *v, const formatdef *f)
|
|||
|
||||
static formatdef bigendian_table[] = {
|
||||
{'x', 1, 0, NULL},
|
||||
#ifdef PY_STRUCT_OVERFLOW_MASKING
|
||||
/* Native packers do range checking without overflow masking. */
|
||||
{'b', 1, 0, nu_byte, bp_int},
|
||||
{'B', 1, 0, nu_ubyte, bp_uint},
|
||||
#else
|
||||
{'b', 1, 0, nu_byte, np_byte},
|
||||
{'B', 1, 0, nu_ubyte, np_ubyte},
|
||||
#endif
|
||||
{'c', 1, 0, nu_char, np_char},
|
||||
{'s', 1, 0, NULL},
|
||||
{'p', 1, 0, NULL},
|
||||
|
@ -825,8 +943,9 @@ lu_int(const char *p, const formatdef *f)
|
|||
{
|
||||
long x = 0;
|
||||
Py_ssize_t i = f->size;
|
||||
const unsigned char *bytes = (const unsigned char *)p;
|
||||
do {
|
||||
x = (x<<8) | (p[--i] & 0xFF);
|
||||
x = (x<<8) | bytes[--i];
|
||||
} while (i > 0);
|
||||
/* Extend the sign bit. */
|
||||
if (SIZEOF_LONG > f->size)
|
||||
|
@ -839,8 +958,9 @@ lu_uint(const char *p, const formatdef *f)
|
|||
{
|
||||
unsigned long x = 0;
|
||||
Py_ssize_t i = f->size;
|
||||
const unsigned char *bytes = (const unsigned char *)p;
|
||||
do {
|
||||
x = (x<<8) | (p[--i] & 0xFF);
|
||||
x = (x<<8) | bytes[--i];
|
||||
} while (i > 0);
|
||||
if (x <= LONG_MAX)
|
||||
return PyInt_FromLong((long)x);
|
||||
|
@ -853,8 +973,9 @@ lu_longlong(const char *p, const formatdef *f)
|
|||
#ifdef HAVE_LONG_LONG
|
||||
PY_LONG_LONG x = 0;
|
||||
Py_ssize_t i = f->size;
|
||||
const unsigned char *bytes = (const unsigned char *)p;
|
||||
do {
|
||||
x = (x<<8) | (p[--i] & 0xFF);
|
||||
x = (x<<8) | bytes[--i];
|
||||
} while (i > 0);
|
||||
/* Extend the sign bit. */
|
||||
if (SIZEOF_LONG_LONG > f->size)
|
||||
|
@ -876,8 +997,9 @@ lu_ulonglong(const char *p, const formatdef *f)
|
|||
#ifdef HAVE_LONG_LONG
|
||||
unsigned PY_LONG_LONG x = 0;
|
||||
Py_ssize_t i = f->size;
|
||||
const unsigned char *bytes = (const unsigned char *)p;
|
||||
do {
|
||||
x = (x<<8) | (p[--i] & 0xFF);
|
||||
x = (x<<8) | bytes[--i];
|
||||
} while (i > 0);
|
||||
if (x <= LONG_MAX)
|
||||
return PyInt_FromLong(Py_SAFE_DOWNCAST(x, unsigned PY_LONG_LONG, long));
|
||||
|
@ -907,15 +1029,19 @@ lp_int(char *p, PyObject *v, const formatdef *f)
|
|||
{
|
||||
long x;
|
||||
Py_ssize_t i;
|
||||
if (get_long(v, &x) < 0)
|
||||
if (get_wrapped_long(v, &x) < 0)
|
||||
return -1;
|
||||
i = f->size;
|
||||
if (i != SIZEOF_LONG) {
|
||||
if ((i == 2) && (x < -32768 || x > 32767))
|
||||
return _range_error(f->format, i, 0);
|
||||
RANGE_ERROR(x, f, 0, 0xffffL);
|
||||
#if (SIZEOF_LONG != 4)
|
||||
else if ((i == 4) && (x < -2147483648L || x > 2147483647L))
|
||||
return _range_error(f->format, i, 0);
|
||||
RANGE_ERROR(x, f, 0, 0xffffffffL);
|
||||
#endif
|
||||
#ifdef PY_STRUCT_OVERFLOW_MASKING
|
||||
else if ((i == 1) && (x < -128 || x > 127))
|
||||
RANGE_ERROR(x, f, 0, 0xffL);
|
||||
#endif
|
||||
}
|
||||
do {
|
||||
|
@ -930,14 +1056,14 @@ lp_uint(char *p, PyObject *v, const formatdef *f)
|
|||
{
|
||||
unsigned long x;
|
||||
Py_ssize_t i;
|
||||
if (get_ulong(v, &x) < 0)
|
||||
if (get_wrapped_ulong(v, &x) < 0)
|
||||
return -1;
|
||||
i = f->size;
|
||||
if (i != SIZEOF_LONG) {
|
||||
unsigned long maxint = 1;
|
||||
maxint <<= (unsigned long)(i * 8);
|
||||
if (x >= maxint)
|
||||
return _range_error(f->format, f->size, 1);
|
||||
RANGE_ERROR(x, f, 1, maxint - 1);
|
||||
}
|
||||
do {
|
||||
*p++ = (char)x;
|
||||
|
@ -1004,8 +1130,14 @@ lp_double(char *p, PyObject *v, const formatdef *f)
|
|||
|
||||
static formatdef lilendian_table[] = {
|
||||
{'x', 1, 0, NULL},
|
||||
#ifdef PY_STRUCT_OVERFLOW_MASKING
|
||||
/* Native packers do range checking without overflow masking. */
|
||||
{'b', 1, 0, nu_byte, lp_int},
|
||||
{'B', 1, 0, nu_ubyte, lp_uint},
|
||||
#else
|
||||
{'b', 1, 0, nu_byte, np_byte},
|
||||
{'B', 1, 0, nu_ubyte, np_ubyte},
|
||||
#endif
|
||||
{'c', 1, 0, nu_char, np_char},
|
||||
{'s', 1, 0, NULL},
|
||||
{'p', 1, 0, NULL},
|
||||
|
@ -1089,7 +1221,7 @@ prepare_s(PyStructObject *self)
|
|||
const formatdef *f;
|
||||
const formatdef *e;
|
||||
formatcode *codes;
|
||||
|
||||
|
||||
const char *s;
|
||||
const char *fmt;
|
||||
char c;
|
||||
|
@ -1098,7 +1230,7 @@ prepare_s(PyStructObject *self)
|
|||
fmt = PyString_AS_STRING(self->s_format);
|
||||
|
||||
f = whichtable((char **)&fmt);
|
||||
|
||||
|
||||
s = fmt;
|
||||
size = 0;
|
||||
len = 0;
|
||||
|
@ -1126,7 +1258,7 @@ prepare_s(PyStructObject *self)
|
|||
e = getentry(c, f);
|
||||
if (e == NULL)
|
||||
return -1;
|
||||
|
||||
|
||||
switch (c) {
|
||||
case 's': /* fall through */
|
||||
case 'p': len++; break;
|
||||
|
@ -1153,7 +1285,7 @@ prepare_s(PyStructObject *self)
|
|||
return -1;
|
||||
}
|
||||
self->s_codes = codes;
|
||||
|
||||
|
||||
s = fmt;
|
||||
size = 0;
|
||||
while ((c = *s++) != '\0') {
|
||||
|
@ -1170,7 +1302,7 @@ prepare_s(PyStructObject *self)
|
|||
num = 1;
|
||||
|
||||
e = getentry(c, f);
|
||||
|
||||
|
||||
size = align(size, c, e);
|
||||
if (c == 's' || c == 'p') {
|
||||
codes->offset = size;
|
||||
|
@ -1193,7 +1325,7 @@ prepare_s(PyStructObject *self)
|
|||
codes->fmtdef = NULL;
|
||||
codes->offset = size;
|
||||
codes->size = 0;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1233,7 +1365,7 @@ s_init(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
Py_INCREF(o_format);
|
||||
Py_XDECREF(soself->s_format);
|
||||
soself->s_format = o_format;
|
||||
|
||||
|
||||
ret = prepare_s(soself);
|
||||
return ret;
|
||||
}
|
||||
|
@ -1302,7 +1434,7 @@ s_unpack(PyObject *self, PyObject *inputstr)
|
|||
{
|
||||
PyStructObject *soself = (PyStructObject *)self;
|
||||
assert(PyStruct_Check(self));
|
||||
assert(soself->s_codes != NULL);
|
||||
assert(soself->s_codes != NULL);
|
||||
if (inputstr == NULL || !PyString_Check(inputstr) ||
|
||||
PyString_GET_SIZE(inputstr) != soself->s_size) {
|
||||
PyErr_Format(StructError,
|
||||
|
@ -1344,7 +1476,7 @@ s_unpack_from(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
"unpack_from requires a buffer argument");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
if (offset < 0)
|
||||
offset += buffer_len;
|
||||
|
||||
|
@ -1410,11 +1542,15 @@ s_pack_internal(PyStructObject *soself, PyObject *args, int offset, char* buf)
|
|||
*res = Py_SAFE_DOWNCAST(n, Py_ssize_t, unsigned char);
|
||||
} else {
|
||||
v = PyTuple_GET_ITEM(args, i++);
|
||||
if (e->pack(res, v, e) < 0)
|
||||
if (e->pack(res, v, e) < 0) {
|
||||
if (PyLong_Check(v) && PyErr_ExceptionMatches(PyExc_OverflowError))
|
||||
PyErr_SetString(StructError,
|
||||
"long too large to convert to int");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Success */
|
||||
return 0;
|
||||
}
|
||||
|
@ -1443,12 +1579,12 @@ s_pack(PyObject *self, PyObject *args)
|
|||
"pack requires exactly %zd arguments", soself->s_len);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Allocate a new string */
|
||||
result = PyString_FromStringAndSize((char *)NULL, soself->s_size);
|
||||
if (result == NULL)
|
||||
return NULL;
|
||||
|
||||
|
||||
/* Call the guts */
|
||||
if ( s_pack_internal(soself, args, 0, PyString_AS_STRING(result)) != 0 ) {
|
||||
Py_DECREF(result);
|
||||
|
@ -1481,14 +1617,14 @@ s_pack_to(PyObject *self, PyObject *args)
|
|||
PyTuple_GET_SIZE(args) != (soself->s_len + 2))
|
||||
{
|
||||
PyErr_Format(StructError,
|
||||
"pack_to requires exactly %zd arguments",
|
||||
"pack_to requires exactly %zd arguments",
|
||||
(soself->s_len + 2));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Extract a writable memory buffer from the first argument */
|
||||
if ( PyObject_AsWriteBuffer(PyTuple_GET_ITEM(args, 0),
|
||||
(void**)&buffer, &buffer_len) == -1 ) {
|
||||
if ( PyObject_AsWriteBuffer(PyTuple_GET_ITEM(args, 0),
|
||||
(void**)&buffer, &buffer_len) == -1 ) {
|
||||
return NULL;
|
||||
}
|
||||
assert( buffer_len >= 0 );
|
||||
|
@ -1507,13 +1643,13 @@ s_pack_to(PyObject *self, PyObject *args)
|
|||
soself->s_size);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Call the guts */
|
||||
if ( s_pack_internal(soself, args, 2, buffer + offset) != 0 ) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
@ -1533,7 +1669,7 @@ s_get_size(PyStructObject *self, void *unused)
|
|||
|
||||
static struct PyMethodDef s_methods[] = {
|
||||
{"pack", (PyCFunction)s_pack, METH_VARARGS, s_pack__doc__},
|
||||
{"pack_to", (PyCFunction)s_pack_to, METH_VARARGS, s_pack_to__doc__},
|
||||
{"pack_to", (PyCFunction)s_pack_to, METH_VARARGS, s_pack_to__doc__},
|
||||
{"unpack", (PyCFunction)s_unpack, METH_O, s_unpack__doc__},
|
||||
{"unpack_from", (PyCFunction)s_unpack_from, METH_KEYWORDS, s_unpack_from__doc__},
|
||||
{NULL, NULL} /* sentinel */
|
||||
|
@ -1606,6 +1742,26 @@ init_struct(void)
|
|||
if (PyType_Ready(&PyStructType) < 0)
|
||||
return;
|
||||
|
||||
#ifdef PY_STRUCT_OVERFLOW_MASKING
|
||||
if (pyint_zero == NULL) {
|
||||
pyint_zero = PyInt_FromLong(0);
|
||||
if (pyint_zero == NULL)
|
||||
return;
|
||||
}
|
||||
if (pylong_ulong_mask == NULL) {
|
||||
#if (SIZEOF_LONG == 4)
|
||||
pylong_ulong_mask = PyLong_FromString("FFFFFFFF", NULL, 16);
|
||||
#else
|
||||
pylong_ulong_mask = PyLong_FromString("FFFFFFFFFFFFFFFF", NULL, 16);
|
||||
#endif
|
||||
if (pylong_ulong_mask == NULL)
|
||||
return;
|
||||
}
|
||||
|
||||
#else
|
||||
/* This speed trick can't be used until overflow masking goes away, because
|
||||
native endian always raises exceptions instead of overflow masking. */
|
||||
|
||||
/* Check endian and swap in faster functions */
|
||||
{
|
||||
int one = 1;
|
||||
|
@ -1627,7 +1783,7 @@ init_struct(void)
|
|||
listed in the same order */
|
||||
if (ptr == other)
|
||||
other++;
|
||||
/* Only use the trick if the
|
||||
/* Only use the trick if the
|
||||
size matches */
|
||||
if (ptr->size != native->size)
|
||||
break;
|
||||
|
@ -1644,7 +1800,8 @@ init_struct(void)
|
|||
native++;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* Add some symbolic constants to the module */
|
||||
if (StructError == NULL) {
|
||||
StructError = PyErr_NewException("struct.error", NULL, NULL);
|
||||
|
@ -1657,4 +1814,9 @@ init_struct(void)
|
|||
|
||||
Py_INCREF((PyObject*)&PyStructType);
|
||||
PyModule_AddObject(m, "Struct", (PyObject*)&PyStructType);
|
||||
|
||||
PyModule_AddIntConstant(m, "_PY_STRUCT_RANGE_CHECKING", 1);
|
||||
#ifdef PY_STRUCT_OVERFLOW_MASKING
|
||||
PyModule_AddIntConstant(m, "_PY_STRUCT_OVERFLOW_MASKING", 1);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -302,7 +302,7 @@ audioop_getsample(PyObject *self, PyObject *args)
|
|||
int len, size, val = 0;
|
||||
int i;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#ii)", &cp, &len, &size, &i) )
|
||||
if ( !PyArg_ParseTuple(args, "s#ii:getsample", &cp, &len, &size, &i) )
|
||||
return 0;
|
||||
if ( size != 1 && size != 2 && size != 4 ) {
|
||||
PyErr_SetString(AudioopError, "Size should be 1, 2 or 4");
|
||||
|
@ -326,7 +326,7 @@ audioop_max(PyObject *self, PyObject *args)
|
|||
int i;
|
||||
int max = 0;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#i)", &cp, &len, &size) )
|
||||
if ( !PyArg_ParseTuple(args, "s#i:max", &cp, &len, &size) )
|
||||
return 0;
|
||||
if ( size != 1 && size != 2 && size != 4 ) {
|
||||
PyErr_SetString(AudioopError, "Size should be 1, 2 or 4");
|
||||
|
@ -350,7 +350,7 @@ audioop_minmax(PyObject *self, PyObject *args)
|
|||
int i;
|
||||
int min = 0x7fffffff, max = -0x7fffffff;
|
||||
|
||||
if (!PyArg_Parse(args, "(s#i)", &cp, &len, &size))
|
||||
if (!PyArg_ParseTuple(args, "s#i:minmax", &cp, &len, &size))
|
||||
return NULL;
|
||||
if (size != 1 && size != 2 && size != 4) {
|
||||
PyErr_SetString(AudioopError, "Size should be 1, 2 or 4");
|
||||
|
@ -374,7 +374,7 @@ audioop_avg(PyObject *self, PyObject *args)
|
|||
int i;
|
||||
double avg = 0.0;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#i)", &cp, &len, &size) )
|
||||
if ( !PyArg_ParseTuple(args, "s#i:avg", &cp, &len, &size) )
|
||||
return 0;
|
||||
if ( size != 1 && size != 2 && size != 4 ) {
|
||||
PyErr_SetString(AudioopError, "Size should be 1, 2 or 4");
|
||||
|
@ -401,7 +401,7 @@ audioop_rms(PyObject *self, PyObject *args)
|
|||
int i;
|
||||
double sum_squares = 0.0;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#i)", &cp, &len, &size) )
|
||||
if ( !PyArg_ParseTuple(args, "s#i:rms", &cp, &len, &size) )
|
||||
return 0;
|
||||
if ( size != 1 && size != 2 && size != 4 ) {
|
||||
PyErr_SetString(AudioopError, "Size should be 1, 2 or 4");
|
||||
|
@ -472,7 +472,8 @@ audioop_findfit(PyObject *self, PyObject *args)
|
|||
double aj_m1, aj_lm1;
|
||||
double sum_ri_2, sum_aij_2, sum_aij_ri, result, best_result, factor;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#s#)", &cp1, &len1, &cp2, &len2) )
|
||||
if ( !PyArg_ParseTuple(args, "s#s#:findfit",
|
||||
&cp1, &len1, &cp2, &len2) )
|
||||
return 0;
|
||||
if ( len1 & 1 || len2 & 1 ) {
|
||||
PyErr_SetString(AudioopError, "Strings should be even-sized");
|
||||
|
@ -528,7 +529,8 @@ audioop_findfactor(PyObject *self, PyObject *args)
|
|||
int len1, len2;
|
||||
double sum_ri_2, sum_aij_ri, result;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#s#)", &cp1, &len1, &cp2, &len2) )
|
||||
if ( !PyArg_ParseTuple(args, "s#s#:findfactor",
|
||||
&cp1, &len1, &cp2, &len2) )
|
||||
return 0;
|
||||
if ( len1 & 1 || len2 & 1 ) {
|
||||
PyErr_SetString(AudioopError, "Strings should be even-sized");
|
||||
|
@ -560,7 +562,7 @@ audioop_findmax(PyObject *self, PyObject *args)
|
|||
double aj_m1, aj_lm1;
|
||||
double result, best_result;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#i)", &cp1, &len1, &len2) )
|
||||
if ( !PyArg_ParseTuple(args, "s#i:findmax", &cp1, &len1, &len2) )
|
||||
return 0;
|
||||
if ( len1 & 1 ) {
|
||||
PyErr_SetString(AudioopError, "Strings should be even-sized");
|
||||
|
@ -605,7 +607,7 @@ audioop_avgpp(PyObject *self, PyObject *args)
|
|||
double avg = 0.0;
|
||||
int diff, prevdiff, extremediff, nextreme = 0;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#i)", &cp, &len, &size) )
|
||||
if ( !PyArg_ParseTuple(args, "s#i:avgpp", &cp, &len, &size) )
|
||||
return 0;
|
||||
if ( size != 1 && size != 2 && size != 4 ) {
|
||||
PyErr_SetString(AudioopError, "Size should be 1, 2 or 4");
|
||||
|
@ -662,7 +664,7 @@ audioop_maxpp(PyObject *self, PyObject *args)
|
|||
int max = 0;
|
||||
int diff, prevdiff, extremediff;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#i)", &cp, &len, &size) )
|
||||
if ( !PyArg_ParseTuple(args, "s#i:maxpp", &cp, &len, &size) )
|
||||
return 0;
|
||||
if ( size != 1 && size != 2 && size != 4 ) {
|
||||
PyErr_SetString(AudioopError, "Size should be 1, 2 or 4");
|
||||
|
@ -713,7 +715,7 @@ audioop_cross(PyObject *self, PyObject *args)
|
|||
int i;
|
||||
int prevval, ncross;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#i)", &cp, &len, &size) )
|
||||
if ( !PyArg_ParseTuple(args, "s#i:cross", &cp, &len, &size) )
|
||||
return 0;
|
||||
if ( size != 1 && size != 2 && size != 4 ) {
|
||||
PyErr_SetString(AudioopError, "Size should be 1, 2 or 4");
|
||||
|
@ -741,7 +743,7 @@ audioop_mul(PyObject *self, PyObject *args)
|
|||
PyObject *rv;
|
||||
int i;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#id)", &cp, &len, &size, &factor ) )
|
||||
if ( !PyArg_ParseTuple(args, "s#id:mul", &cp, &len, &size, &factor ) )
|
||||
return 0;
|
||||
|
||||
if ( size == 1 ) maxval = (double) 0x7f;
|
||||
|
@ -782,7 +784,8 @@ audioop_tomono(PyObject *self, PyObject *args)
|
|||
PyObject *rv;
|
||||
int i;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#idd)", &cp, &len, &size, &fac1, &fac2 ) )
|
||||
if ( !PyArg_ParseTuple(args, "s#idd:tomono",
|
||||
&cp, &len, &size, &fac1, &fac2 ) )
|
||||
return 0;
|
||||
|
||||
if ( size == 1 ) maxval = (double) 0x7f;
|
||||
|
@ -826,7 +829,8 @@ audioop_tostereo(PyObject *self, PyObject *args)
|
|||
PyObject *rv;
|
||||
int i;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#idd)", &cp, &len, &size, &fac1, &fac2 ) )
|
||||
if ( !PyArg_ParseTuple(args, "s#idd:tostereo",
|
||||
&cp, &len, &size, &fac1, &fac2 ) )
|
||||
return 0;
|
||||
|
||||
if ( size == 1 ) maxval = (double) 0x7f;
|
||||
|
@ -877,7 +881,7 @@ audioop_add(PyObject *self, PyObject *args)
|
|||
PyObject *rv;
|
||||
int i;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#s#i)",
|
||||
if ( !PyArg_ParseTuple(args, "s#s#i:add",
|
||||
&cp1, &len1, &cp2, &len2, &size ) )
|
||||
return 0;
|
||||
|
||||
|
@ -931,7 +935,7 @@ audioop_bias(PyObject *self, PyObject *args)
|
|||
int i;
|
||||
int bias;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#ii)",
|
||||
if ( !PyArg_ParseTuple(args, "s#ii:bias",
|
||||
&cp, &len, &size , &bias) )
|
||||
return 0;
|
||||
|
||||
|
@ -967,7 +971,7 @@ audioop_reverse(PyObject *self, PyObject *args)
|
|||
PyObject *rv;
|
||||
int i, j;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#i)",
|
||||
if ( !PyArg_ParseTuple(args, "s#i:reverse",
|
||||
&cp, &len, &size) )
|
||||
return 0;
|
||||
|
||||
|
@ -1004,7 +1008,7 @@ audioop_lin2lin(PyObject *self, PyObject *args)
|
|||
PyObject *rv;
|
||||
int i, j;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#ii)",
|
||||
if ( !PyArg_ParseTuple(args, "s#ii:lin2lin",
|
||||
&cp, &len, &size, &size2) )
|
||||
return 0;
|
||||
|
||||
|
@ -1053,8 +1057,9 @@ audioop_ratecv(PyObject *self, PyObject *args)
|
|||
|
||||
weightA = 1;
|
||||
weightB = 0;
|
||||
if (!PyArg_ParseTuple(args, "s#iiiiO|ii:ratecv", &cp, &len, &size, &nchannels,
|
||||
&inrate, &outrate, &state, &weightA, &weightB))
|
||||
if (!PyArg_ParseTuple(args, "s#iiiiO|ii:ratecv", &cp, &len, &size,
|
||||
&nchannels, &inrate, &outrate, &state,
|
||||
&weightA, &weightB))
|
||||
return NULL;
|
||||
if (size != 1 && size != 2 && size != 4) {
|
||||
PyErr_SetString(AudioopError, "Size should be 1, 2 or 4");
|
||||
|
@ -1117,7 +1122,8 @@ audioop_ratecv(PyObject *self, PyObject *args)
|
|||
}
|
||||
for (chan = 0; chan < nchannels; chan++) {
|
||||
if (!PyArg_ParseTuple(PyTuple_GetItem(samps, chan),
|
||||
"ii:ratecv",&prev_i[chan],&cur_i[chan]))
|
||||
"ii:ratecv", &prev_i[chan],
|
||||
&cur_i[chan]))
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
@ -1235,9 +1241,9 @@ audioop_lin2ulaw(PyObject *self, PyObject *args)
|
|||
PyObject *rv;
|
||||
int i;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#i)",
|
||||
&cp, &len, &size) )
|
||||
return 0;
|
||||
if ( !PyArg_ParseTuple(args, "s#i:lin2ulaw",
|
||||
&cp, &len, &size) )
|
||||
return 0 ;
|
||||
|
||||
if ( size != 1 && size != 2 && size != 4) {
|
||||
PyErr_SetString(AudioopError, "Size should be 1, 2 or 4");
|
||||
|
@ -1269,8 +1275,8 @@ audioop_ulaw2lin(PyObject *self, PyObject *args)
|
|||
PyObject *rv;
|
||||
int i;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#i)",
|
||||
&cp, &len, &size) )
|
||||
if ( !PyArg_ParseTuple(args, "s#i:ulaw2lin",
|
||||
&cp, &len, &size) )
|
||||
return 0;
|
||||
|
||||
if ( size != 1 && size != 2 && size != 4) {
|
||||
|
@ -1303,8 +1309,8 @@ audioop_lin2alaw(PyObject *self, PyObject *args)
|
|||
PyObject *rv;
|
||||
int i;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#i)",
|
||||
&cp, &len, &size) )
|
||||
if ( !PyArg_ParseTuple(args, "s#i:lin2alaw",
|
||||
&cp, &len, &size) )
|
||||
return 0;
|
||||
|
||||
if ( size != 1 && size != 2 && size != 4) {
|
||||
|
@ -1337,8 +1343,8 @@ audioop_alaw2lin(PyObject *self, PyObject *args)
|
|||
PyObject *rv;
|
||||
int i;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#i)",
|
||||
&cp, &len, &size) )
|
||||
if ( !PyArg_ParseTuple(args, "s#i:alaw2lin",
|
||||
&cp, &len, &size) )
|
||||
return 0;
|
||||
|
||||
if ( size != 1 && size != 2 && size != 4) {
|
||||
|
@ -1372,8 +1378,8 @@ audioop_lin2adpcm(PyObject *self, PyObject *args)
|
|||
PyObject *rv, *state, *str;
|
||||
int i, outputbuffer = 0, bufferstep;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#iO)",
|
||||
&cp, &len, &size, &state) )
|
||||
if ( !PyArg_ParseTuple(args, "s#iO:lin2adpcm",
|
||||
&cp, &len, &size, &state) )
|
||||
return 0;
|
||||
|
||||
|
||||
|
@ -1393,7 +1399,7 @@ audioop_lin2adpcm(PyObject *self, PyObject *args)
|
|||
valpred = 0;
|
||||
step = 7;
|
||||
index = 0;
|
||||
} else if ( !PyArg_Parse(state, "(ii)", &valpred, &index) )
|
||||
} else if ( !PyArg_ParseTuple(state, "ii", &valpred, &index) )
|
||||
return 0;
|
||||
|
||||
step = stepsizeTable[index];
|
||||
|
@ -1480,8 +1486,8 @@ audioop_adpcm2lin(PyObject *self, PyObject *args)
|
|||
PyObject *rv, *str, *state;
|
||||
int i, inputbuffer = 0, bufferstep;
|
||||
|
||||
if ( !PyArg_Parse(args, "(s#iO)",
|
||||
&cp, &len, &size, &state) )
|
||||
if ( !PyArg_ParseTuple(args, "s#iO:adpcm2lin",
|
||||
&cp, &len, &size, &state) )
|
||||
return 0;
|
||||
|
||||
if ( size != 1 && size != 2 && size != 4) {
|
||||
|
@ -1495,7 +1501,7 @@ audioop_adpcm2lin(PyObject *self, PyObject *args)
|
|||
valpred = 0;
|
||||
step = 7;
|
||||
index = 0;
|
||||
} else if ( !PyArg_Parse(state, "(ii)", &valpred, &index) )
|
||||
} else if ( !PyArg_ParseTuple(state, "ii", &valpred, &index) )
|
||||
return 0;
|
||||
|
||||
str = PyString_FromStringAndSize(NULL, len*size*2);
|
||||
|
@ -1562,30 +1568,30 @@ audioop_adpcm2lin(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyMethodDef audioop_methods[] = {
|
||||
{ "max", audioop_max, METH_OLDARGS },
|
||||
{ "minmax", audioop_minmax, METH_OLDARGS },
|
||||
{ "avg", audioop_avg, METH_OLDARGS },
|
||||
{ "maxpp", audioop_maxpp, METH_OLDARGS },
|
||||
{ "avgpp", audioop_avgpp, METH_OLDARGS },
|
||||
{ "rms", audioop_rms, METH_OLDARGS },
|
||||
{ "findfit", audioop_findfit, METH_OLDARGS },
|
||||
{ "findmax", audioop_findmax, METH_OLDARGS },
|
||||
{ "findfactor", audioop_findfactor, METH_OLDARGS },
|
||||
{ "cross", audioop_cross, METH_OLDARGS },
|
||||
{ "mul", audioop_mul, METH_OLDARGS },
|
||||
{ "add", audioop_add, METH_OLDARGS },
|
||||
{ "bias", audioop_bias, METH_OLDARGS },
|
||||
{ "ulaw2lin", audioop_ulaw2lin, METH_OLDARGS },
|
||||
{ "lin2ulaw", audioop_lin2ulaw, METH_OLDARGS },
|
||||
{ "alaw2lin", audioop_alaw2lin, METH_OLDARGS },
|
||||
{ "lin2alaw", audioop_lin2alaw, METH_OLDARGS },
|
||||
{ "lin2lin", audioop_lin2lin, METH_OLDARGS },
|
||||
{ "adpcm2lin", audioop_adpcm2lin, METH_OLDARGS },
|
||||
{ "lin2adpcm", audioop_lin2adpcm, METH_OLDARGS },
|
||||
{ "tomono", audioop_tomono, METH_OLDARGS },
|
||||
{ "tostereo", audioop_tostereo, METH_OLDARGS },
|
||||
{ "getsample", audioop_getsample, METH_OLDARGS },
|
||||
{ "reverse", audioop_reverse, METH_OLDARGS },
|
||||
{ "max", audioop_max, METH_VARARGS },
|
||||
{ "minmax", audioop_minmax, METH_VARARGS },
|
||||
{ "avg", audioop_avg, METH_VARARGS },
|
||||
{ "maxpp", audioop_maxpp, METH_VARARGS },
|
||||
{ "avgpp", audioop_avgpp, METH_VARARGS },
|
||||
{ "rms", audioop_rms, METH_VARARGS },
|
||||
{ "findfit", audioop_findfit, METH_VARARGS },
|
||||
{ "findmax", audioop_findmax, METH_VARARGS },
|
||||
{ "findfactor", audioop_findfactor, METH_VARARGS },
|
||||
{ "cross", audioop_cross, METH_VARARGS },
|
||||
{ "mul", audioop_mul, METH_VARARGS },
|
||||
{ "add", audioop_add, METH_VARARGS },
|
||||
{ "bias", audioop_bias, METH_VARARGS },
|
||||
{ "ulaw2lin", audioop_ulaw2lin, METH_VARARGS },
|
||||
{ "lin2ulaw", audioop_lin2ulaw, METH_VARARGS },
|
||||
{ "alaw2lin", audioop_alaw2lin, METH_VARARGS },
|
||||
{ "lin2alaw", audioop_lin2alaw, METH_VARARGS },
|
||||
{ "lin2lin", audioop_lin2lin, METH_VARARGS },
|
||||
{ "adpcm2lin", audioop_adpcm2lin, METH_VARARGS },
|
||||
{ "lin2adpcm", audioop_lin2adpcm, METH_VARARGS },
|
||||
{ "tomono", audioop_tomono, METH_VARARGS },
|
||||
{ "tostereo", audioop_tostereo, METH_VARARGS },
|
||||
{ "getsample", audioop_getsample, METH_VARARGS },
|
||||
{ "reverse", audioop_reverse, METH_VARARGS },
|
||||
{ "ratecv", audioop_ratecv, METH_VARARGS },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
|
|
@ -644,7 +644,7 @@ binascii_rledecode_hqx(PyObject *self, PyObject *args)
|
|||
|
||||
/* Empty string is a special case */
|
||||
if ( in_len == 0 )
|
||||
return Py_BuildValue("s", "");
|
||||
return PyString_FromString("");
|
||||
|
||||
/* Allocate a buffer of reasonable size. Resized when needed */
|
||||
out_len = in_len*2;
|
||||
|
|
|
@ -5110,29 +5110,23 @@ noload(Unpicklerobject *self)
|
|||
|
||||
|
||||
static PyObject *
|
||||
Unpickler_load(Unpicklerobject *self, PyObject *args)
|
||||
Unpickler_load(Unpicklerobject *self, PyObject *unused)
|
||||
{
|
||||
if (!( PyArg_ParseTuple(args, ":load")))
|
||||
return NULL;
|
||||
|
||||
return load(self);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
Unpickler_noload(Unpicklerobject *self, PyObject *args)
|
||||
Unpickler_noload(Unpicklerobject *self, PyObject *unused)
|
||||
{
|
||||
if (!( PyArg_ParseTuple(args, ":noload")))
|
||||
return NULL;
|
||||
|
||||
return noload(self);
|
||||
}
|
||||
|
||||
|
||||
static struct PyMethodDef Unpickler_methods[] = {
|
||||
{"load", (PyCFunction)Unpickler_load, METH_VARARGS,
|
||||
{"load", (PyCFunction)Unpickler_load, METH_NOARGS,
|
||||
PyDoc_STR("load() -- Load a pickle")
|
||||
},
|
||||
{"noload", (PyCFunction)Unpickler_noload, METH_VARARGS,
|
||||
{"noload", (PyCFunction)Unpickler_noload, METH_NOARGS,
|
||||
PyDoc_STR(
|
||||
"noload() -- not load a pickle, but go through most of the motions\n"
|
||||
"\n"
|
||||
|
@ -5214,12 +5208,8 @@ newUnpicklerobject(PyObject *f)
|
|||
|
||||
|
||||
static PyObject *
|
||||
get_Unpickler(PyObject *self, PyObject *args)
|
||||
get_Unpickler(PyObject *self, PyObject *file)
|
||||
{
|
||||
PyObject *file;
|
||||
|
||||
if (!( PyArg_ParseTuple(args, "O:Unpickler", &file)))
|
||||
return NULL;
|
||||
return (PyObject *)newUnpicklerobject(file);
|
||||
}
|
||||
|
||||
|
@ -5428,13 +5418,10 @@ cpm_dumps(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
|
||||
/* load(fileobj). */
|
||||
static PyObject *
|
||||
cpm_load(PyObject *self, PyObject *args)
|
||||
cpm_load(PyObject *self, PyObject *ob)
|
||||
{
|
||||
Unpicklerobject *unpickler = 0;
|
||||
PyObject *ob, *res = NULL;
|
||||
|
||||
if (!( PyArg_ParseTuple(args, "O:load", &ob)))
|
||||
goto finally;
|
||||
PyObject *res = NULL;
|
||||
|
||||
if (!( unpickler = newUnpicklerobject(ob)))
|
||||
goto finally;
|
||||
|
@ -5519,7 +5506,7 @@ static struct PyMethodDef cPickle_methods[] = {
|
|||
"See the Pickler docstring for the meaning of optional argument proto.")
|
||||
},
|
||||
|
||||
{"load", (PyCFunction)cpm_load, METH_VARARGS,
|
||||
{"load", (PyCFunction)cpm_load, METH_O,
|
||||
PyDoc_STR("load(file) -- Load a pickle from the given file")},
|
||||
|
||||
{"loads", (PyCFunction)cpm_loads, METH_VARARGS,
|
||||
|
@ -5550,7 +5537,7 @@ static struct PyMethodDef cPickle_methods[] = {
|
|||
"object, or any other custom object that meets this interface.\n")
|
||||
},
|
||||
|
||||
{"Unpickler", (PyCFunction)get_Unpickler, METH_VARARGS,
|
||||
{"Unpickler", (PyCFunction)get_Unpickler, METH_O,
|
||||
PyDoc_STR("Unpickler(file) -- Create an unpickler.")},
|
||||
|
||||
{ NULL, NULL }
|
||||
|
|
|
@ -1302,7 +1302,7 @@ mbstreamreader_read(MultibyteStreamReaderObject *self, PyObject *args)
|
|||
PyObject *sizeobj = NULL;
|
||||
Py_ssize_t size;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "|O:read", &sizeobj))
|
||||
if (!PyArg_UnpackTuple(args, "read", 0, 1, &sizeobj))
|
||||
return NULL;
|
||||
|
||||
if (sizeobj == Py_None || sizeobj == NULL)
|
||||
|
@ -1323,7 +1323,7 @@ mbstreamreader_readline(MultibyteStreamReaderObject *self, PyObject *args)
|
|||
PyObject *sizeobj = NULL;
|
||||
Py_ssize_t size;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "|O:readline", &sizeobj))
|
||||
if (!PyArg_UnpackTuple(args, "readline", 0, 1, &sizeobj))
|
||||
return NULL;
|
||||
|
||||
if (sizeobj == Py_None || sizeobj == NULL)
|
||||
|
@ -1344,7 +1344,7 @@ mbstreamreader_readlines(MultibyteStreamReaderObject *self, PyObject *args)
|
|||
PyObject *sizehintobj = NULL, *r, *sr;
|
||||
Py_ssize_t sizehint;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "|O:readlines", &sizehintobj))
|
||||
if (!PyArg_UnpackTuple(args, "readlines", 0, 1, &sizehintobj))
|
||||
return NULL;
|
||||
|
||||
if (sizehintobj == Py_None || sizehintobj == NULL)
|
||||
|
@ -1532,13 +1532,8 @@ mbstreamwriter_iwrite(MultibyteStreamWriterObject *self,
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
mbstreamwriter_write(MultibyteStreamWriterObject *self, PyObject *args)
|
||||
mbstreamwriter_write(MultibyteStreamWriterObject *self, PyObject *strobj)
|
||||
{
|
||||
PyObject *strobj;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "O:write", &strobj))
|
||||
return NULL;
|
||||
|
||||
if (mbstreamwriter_iwrite(self, strobj))
|
||||
return NULL;
|
||||
else
|
||||
|
@ -1546,14 +1541,11 @@ mbstreamwriter_write(MultibyteStreamWriterObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
mbstreamwriter_writelines(MultibyteStreamWriterObject *self, PyObject *args)
|
||||
mbstreamwriter_writelines(MultibyteStreamWriterObject *self, PyObject *lines)
|
||||
{
|
||||
PyObject *lines, *strobj;
|
||||
PyObject *strobj;
|
||||
int i, r;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "O:writelines", &lines))
|
||||
return NULL;
|
||||
|
||||
if (!PySequence_Check(lines)) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"arg must be a sequence object");
|
||||
|
@ -1676,9 +1668,9 @@ mbstreamwriter_dealloc(MultibyteStreamWriterObject *self)
|
|||
|
||||
static struct PyMethodDef mbstreamwriter_methods[] = {
|
||||
{"write", (PyCFunction)mbstreamwriter_write,
|
||||
METH_VARARGS, NULL},
|
||||
METH_O, NULL},
|
||||
{"writelines", (PyCFunction)mbstreamwriter_writelines,
|
||||
METH_VARARGS, NULL},
|
||||
METH_O, NULL},
|
||||
{"reset", (PyCFunction)mbstreamwriter_reset,
|
||||
METH_NOARGS, NULL},
|
||||
{NULL, NULL},
|
||||
|
|
|
@ -168,10 +168,8 @@ static PyMappingMethods dbm_as_mapping = {
|
|||
};
|
||||
|
||||
static PyObject *
|
||||
dbm__close(register dbmobject *dp, PyObject *args)
|
||||
dbm__close(register dbmobject *dp, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":close"))
|
||||
return NULL;
|
||||
if (dp->di_dbm)
|
||||
dbm_close(dp->di_dbm);
|
||||
dp->di_dbm = NULL;
|
||||
|
@ -180,14 +178,12 @@ dbm__close(register dbmobject *dp, PyObject *args)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
dbm_keys(register dbmobject *dp, PyObject *args)
|
||||
dbm_keys(register dbmobject *dp, PyObject *unused)
|
||||
{
|
||||
register PyObject *v, *item;
|
||||
datum key;
|
||||
int err;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":keys"))
|
||||
return NULL;
|
||||
check_dbmobject_open(dp);
|
||||
v = PyList_New(0);
|
||||
if (v == NULL)
|
||||
|
@ -277,9 +273,9 @@ dbm_setdefault(register dbmobject *dp, PyObject *args)
|
|||
}
|
||||
|
||||
static PyMethodDef dbm_methods[] = {
|
||||
{"close", (PyCFunction)dbm__close, METH_VARARGS,
|
||||
{"close", (PyCFunction)dbm__close, METH_NOARGS,
|
||||
"close()\nClose the database."},
|
||||
{"keys", (PyCFunction)dbm_keys, METH_VARARGS,
|
||||
{"keys", (PyCFunction)dbm_keys, METH_NOARGS,
|
||||
"keys() -> list\nReturn a list of all keys in the database."},
|
||||
{"has_key", (PyCFunction)dbm_has_key, METH_VARARGS,
|
||||
"has_key(key} -> boolean\nReturn true iff key is in the database."},
|
||||
|
|
|
@ -148,22 +148,21 @@ releaseobjects(FL_FORM *form)
|
|||
static PyObject *
|
||||
generic_set_call_back(genericobject *g, PyObject *args)
|
||||
{
|
||||
if (args == NULL) {
|
||||
if (PyTuple_GET_SIZE(args) == 0) {
|
||||
Py_XDECREF(g->ob_callback);
|
||||
Py_XDECREF(g->ob_callback_arg);
|
||||
g->ob_callback = NULL;
|
||||
g->ob_callback_arg = NULL;
|
||||
}
|
||||
else {
|
||||
if (!PyTuple_Check(args) || PyTuple_Size(args) != 2) {
|
||||
PyErr_BadArgument();
|
||||
return NULL;
|
||||
}
|
||||
PyObject *a, *b;
|
||||
if (!PyArg_UnpackTuple(args, "set_call_back", 2, 2, &a, &b)
|
||||
return NULL;
|
||||
Py_XDECREF(g->ob_callback);
|
||||
Py_XDECREF(g->ob_callback_arg);
|
||||
g->ob_callback = PyTuple_GetItem(args, 0);
|
||||
g->ob_callback = a;
|
||||
Py_INCREF(g->ob_callback);
|
||||
g->ob_callback_arg = PyTuple_GetItem(args, 1);
|
||||
g->ob_callback_arg = b;
|
||||
Py_INCREF(g->ob_callback_arg);
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
|
@ -250,7 +249,7 @@ generic_set_object_shortcut(genericobject *g, PyObject *args)
|
|||
}
|
||||
|
||||
static PyMethodDef generic_methods[] = {
|
||||
{"set_call_back", (PyCFunction)generic_set_call_back, METH_OLDARGS},
|
||||
{"set_call_back", (PyCFunction)generic_set_call_back, METH_VARARGS},
|
||||
{"delete_object", (PyCFunction)generic_delete_object, METH_NOARGS},
|
||||
{"show_object", (PyCFunction)generic_show_object, METH_NOARGS},
|
||||
{"hide_object", (PyCFunction)generic_hide_object, METH_NOARGS},
|
||||
|
@ -261,7 +260,7 @@ static PyMethodDef generic_methods[] = {
|
|||
#endif
|
||||
{"activate_object", (PyCFunction)generic_activate_object, METH_NOARGS},
|
||||
{"deactivate_object", (PyCFunction)generic_deactivate_object, METH_NOARGS},
|
||||
{"set_object_shortcut", (PyCFunction)generic_set_object_shortcut, METH_OLDARGS},
|
||||
{"set_object_shortcut", (PyCFunction)generic_set_object_shortcut, METH_VARARGS},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ static PyObject *
|
|||
fh_scalefont(fhobject *self, PyObject *args)
|
||||
{
|
||||
double size;
|
||||
if (!PyArg_Parse(args, "d", &size))
|
||||
if (!PyArg_ParseTuple(args, "d", &size))
|
||||
return NULL;
|
||||
return newfhobject(fmscalefont(self->fh_fh, size));
|
||||
}
|
||||
|
@ -112,21 +112,21 @@ static PyObject *
|
|||
fh_getstrwidth(fhobject *self, PyObject *args)
|
||||
{
|
||||
char *str;
|
||||
if (!PyArg_Parse(args, "s", &str))
|
||||
if (!PyArg_ParseTuple(args, "s", &str))
|
||||
return NULL;
|
||||
return PyInt_FromLong(fmgetstrwidth(self->fh_fh, str));
|
||||
}
|
||||
|
||||
static PyMethodDef fh_methods[] = {
|
||||
{"scalefont", (PyCFunction)fh_scalefont, METH_OLDARGS},
|
||||
{"scalefont", (PyCFunction)fh_scalefont, METH_VARARGS},
|
||||
{"setfont", (PyCFunction)fh_setfont, METH_NOARGS},
|
||||
{"getfontname", (PyCFunction)fh_getfontname, METH_NOARGS},
|
||||
{"getcomment", (PyCFunction)fh_getcomment, METH_NOARGS},
|
||||
{"getfontinfo", (PyCFunction)fh_getfontinfo, METH_NOARGS},
|
||||
#if 0
|
||||
{"getwholemetrics", (PyCFunction)fh_getwholemetrics, METH_OLDARGS},
|
||||
{"getwholemetrics", (PyCFunction)fh_getwholemetrics, METH_VARARGS},
|
||||
#endif
|
||||
{"getstrwidth", (PyCFunction)fh_getstrwidth, METH_OLDARGS},
|
||||
{"getstrwidth", (PyCFunction)fh_getstrwidth, METH_VARARGS},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
@ -173,7 +173,7 @@ static PyObject *
|
|||
fm_findfont(PyObject *self, PyObject *args)
|
||||
{
|
||||
char *str;
|
||||
if (!PyArg_Parse(args, "s", &str))
|
||||
if (!PyArg_ParseTuple(args, "s", &str))
|
||||
return NULL;
|
||||
return newfhobject(fmfindfont(str));
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ static PyObject *
|
|||
fm_prstr(PyObject *self, PyObject *args)
|
||||
{
|
||||
char *str;
|
||||
if (!PyArg_Parse(args, "s", &str))
|
||||
if (!PyArg_ParseTuple(args, "s", &str))
|
||||
return NULL;
|
||||
fmprstr(str);
|
||||
Py_INCREF(Py_None);
|
||||
|
@ -230,7 +230,7 @@ static PyObject *
|
|||
fm_setpath(PyObject *self, PyObject *args)
|
||||
{
|
||||
char *str;
|
||||
if (!PyArg_Parse(args, "s", &str))
|
||||
if (!PyArg_ParseTuple(args, "s", &str))
|
||||
return NULL;
|
||||
fmsetpath(str);
|
||||
Py_INCREF(Py_None);
|
||||
|
@ -245,10 +245,10 @@ fm_fontpath(PyObject *self)
|
|||
|
||||
static PyMethodDef fm_methods[] = {
|
||||
{"init", fm_init, METH_NOARGS},
|
||||
{"findfont", fm_findfont, METH_OLDARGS},
|
||||
{"findfont", fm_findfont, METH_VARARGS},
|
||||
{"enumerate", fm_enumerate, METH_NOARGS},
|
||||
{"prstr", fm_prstr, METH_OLDARGS},
|
||||
{"setpath", fm_setpath, METH_OLDARGS},
|
||||
{"prstr", fm_prstr, METH_VARARGS},
|
||||
{"setpath", fm_setpath, METH_VARARGS},
|
||||
{"fontpath", fm_fontpath, METH_NOARGS},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
|
|
@ -189,10 +189,8 @@ PyDoc_STRVAR(dbm_close__doc__,
|
|||
Closes the database.");
|
||||
|
||||
static PyObject *
|
||||
dbm_close(register dbmobject *dp, PyObject *args)
|
||||
dbm_close(register dbmobject *dp, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":close"))
|
||||
return NULL;
|
||||
if (dp->di_dbm)
|
||||
gdbm_close(dp->di_dbm);
|
||||
dp->di_dbm = NULL;
|
||||
|
@ -205,7 +203,7 @@ PyDoc_STRVAR(dbm_keys__doc__,
|
|||
Get a list of all keys in the database.");
|
||||
|
||||
static PyObject *
|
||||
dbm_keys(register dbmobject *dp, PyObject *args)
|
||||
dbm_keys(register dbmobject *dp, PyObject *unused)
|
||||
{
|
||||
register PyObject *v, *item;
|
||||
datum key, nextkey;
|
||||
|
@ -215,9 +213,6 @@ dbm_keys(register dbmobject *dp, PyObject *args)
|
|||
PyErr_BadInternalCall();
|
||||
return NULL;
|
||||
}
|
||||
if (!PyArg_ParseTuple(args, ":keys"))
|
||||
return NULL;
|
||||
|
||||
check_dbmobject_open(dp);
|
||||
|
||||
v = PyList_New(0);
|
||||
|
@ -269,13 +264,11 @@ hash values, and won't be sorted by the key values. This method\n\
|
|||
returns the starting key.");
|
||||
|
||||
static PyObject *
|
||||
dbm_firstkey(register dbmobject *dp, PyObject *args)
|
||||
dbm_firstkey(register dbmobject *dp, PyObject *unused)
|
||||
{
|
||||
register PyObject *v;
|
||||
datum key;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":firstkey"))
|
||||
return NULL;
|
||||
check_dbmobject_open(dp);
|
||||
key = gdbm_firstkey(dp->di_dbm);
|
||||
if (key.dptr) {
|
||||
|
@ -330,10 +323,8 @@ by using this reorganization; otherwise, deleted file space will be\n\
|
|||
kept and reused as new (key,value) pairs are added.");
|
||||
|
||||
static PyObject *
|
||||
dbm_reorganize(register dbmobject *dp, PyObject *args)
|
||||
dbm_reorganize(register dbmobject *dp, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":reorganize"))
|
||||
return NULL;
|
||||
check_dbmobject_open(dp);
|
||||
errno = 0;
|
||||
if (gdbm_reorganize(dp->di_dbm) < 0) {
|
||||
|
@ -353,10 +344,8 @@ When the database has been opened in fast mode, this method forces\n\
|
|||
any unwritten data to be written to the disk.");
|
||||
|
||||
static PyObject *
|
||||
dbm_sync(register dbmobject *dp, PyObject *args)
|
||||
dbm_sync(register dbmobject *dp, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":sync"))
|
||||
return NULL;
|
||||
check_dbmobject_open(dp);
|
||||
gdbm_sync(dp->di_dbm);
|
||||
Py_INCREF(Py_None);
|
||||
|
@ -364,13 +353,13 @@ dbm_sync(register dbmobject *dp, PyObject *args)
|
|||
}
|
||||
|
||||
static PyMethodDef dbm_methods[] = {
|
||||
{"close", (PyCFunction)dbm_close, METH_VARARGS, dbm_close__doc__},
|
||||
{"keys", (PyCFunction)dbm_keys, METH_VARARGS, dbm_keys__doc__},
|
||||
{"close", (PyCFunction)dbm_close, METH_NOARGS, dbm_close__doc__},
|
||||
{"keys", (PyCFunction)dbm_keys, METH_NOARGS, dbm_keys__doc__},
|
||||
{"has_key", (PyCFunction)dbm_has_key, METH_VARARGS, dbm_has_key__doc__},
|
||||
{"firstkey", (PyCFunction)dbm_firstkey,METH_VARARGS, dbm_firstkey__doc__},
|
||||
{"firstkey", (PyCFunction)dbm_firstkey,METH_NOARGS, dbm_firstkey__doc__},
|
||||
{"nextkey", (PyCFunction)dbm_nextkey, METH_VARARGS, dbm_nextkey__doc__},
|
||||
{"reorganize",(PyCFunction)dbm_reorganize,METH_VARARGS, dbm_reorganize__doc__},
|
||||
{"sync", (PyCFunction)dbm_sync, METH_VARARGS, dbm_sync__doc__},
|
||||
{"reorganize",(PyCFunction)dbm_reorganize,METH_NOARGS, dbm_reorganize__doc__},
|
||||
{"sync", (PyCFunction)dbm_sync, METH_NOARGS, dbm_sync__doc__},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
|
@ -219,24 +219,18 @@ lad_write(lad_t *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
lad_close(lad_t *self, PyObject *args)
|
||||
lad_close(lad_t *self, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":close"))
|
||||
return NULL;
|
||||
|
||||
if (self->x_fd >= 0) {
|
||||
close(self->x_fd);
|
||||
self->x_fd = -1;
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
lad_fileno(lad_t *self, PyObject *args)
|
||||
lad_fileno(lad_t *self, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":fileno"))
|
||||
return NULL;
|
||||
return PyInt_FromLong(self->x_fd);
|
||||
}
|
||||
|
||||
|
@ -341,13 +335,11 @@ _ssize(lad_t *self, int *nchannels, int *ssize)
|
|||
/* bufsize returns the size of the hardware audio buffer in number
|
||||
of samples */
|
||||
static PyObject *
|
||||
lad_bufsize(lad_t *self, PyObject *args)
|
||||
lad_bufsize(lad_t *self, PyObject *unused)
|
||||
{
|
||||
audio_buf_info ai;
|
||||
int nchannels=0, ssize=0;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":bufsize")) return NULL;
|
||||
|
||||
if (_ssize(self, &nchannels, &ssize) < 0 || !ssize || !nchannels) {
|
||||
PyErr_SetFromErrno(LinuxAudioError);
|
||||
return NULL;
|
||||
|
@ -362,14 +354,11 @@ lad_bufsize(lad_t *self, PyObject *args)
|
|||
/* obufcount returns the number of samples that are available in the
|
||||
hardware for playing */
|
||||
static PyObject *
|
||||
lad_obufcount(lad_t *self, PyObject *args)
|
||||
lad_obufcount(lad_t *self, PyObject *unused)
|
||||
{
|
||||
audio_buf_info ai;
|
||||
int nchannels=0, ssize=0;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":obufcount"))
|
||||
return NULL;
|
||||
|
||||
if (_ssize(self, &nchannels, &ssize) < 0 || !ssize || !nchannels) {
|
||||
PyErr_SetFromErrno(LinuxAudioError);
|
||||
return NULL;
|
||||
|
@ -385,14 +374,11 @@ lad_obufcount(lad_t *self, PyObject *args)
|
|||
/* obufcount returns the number of samples that can be played without
|
||||
blocking */
|
||||
static PyObject *
|
||||
lad_obuffree(lad_t *self, PyObject *args)
|
||||
lad_obuffree(lad_t *self, PyObject *unused)
|
||||
{
|
||||
audio_buf_info ai;
|
||||
int nchannels=0, ssize=0;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":obuffree"))
|
||||
return NULL;
|
||||
|
||||
if (_ssize(self, &nchannels, &ssize) < 0 || !ssize || !nchannels) {
|
||||
PyErr_SetFromErrno(LinuxAudioError);
|
||||
return NULL;
|
||||
|
@ -406,27 +392,21 @@ lad_obuffree(lad_t *self, PyObject *args)
|
|||
|
||||
/* Flush the device */
|
||||
static PyObject *
|
||||
lad_flush(lad_t *self, PyObject *args)
|
||||
lad_flush(lad_t *self, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":flush")) return NULL;
|
||||
|
||||
if (ioctl(self->x_fd, SNDCTL_DSP_SYNC, NULL) == -1) {
|
||||
PyErr_SetFromErrno(LinuxAudioError);
|
||||
return NULL;
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
lad_getptr(lad_t *self, PyObject *args)
|
||||
lad_getptr(lad_t *self, PyObject *unused)
|
||||
{
|
||||
count_info info;
|
||||
int req;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":getptr"))
|
||||
return NULL;
|
||||
|
||||
if (self->x_mode == O_RDONLY)
|
||||
req = SNDCTL_DSP_GETIPTR;
|
||||
else
|
||||
|
@ -443,12 +423,12 @@ static PyMethodDef lad_methods[] = {
|
|||
{ "write", (PyCFunction)lad_write, METH_VARARGS },
|
||||
{ "setparameters", (PyCFunction)lad_setparameters, METH_VARARGS },
|
||||
{ "bufsize", (PyCFunction)lad_bufsize, METH_VARARGS },
|
||||
{ "obufcount", (PyCFunction)lad_obufcount, METH_VARARGS },
|
||||
{ "obuffree", (PyCFunction)lad_obuffree, METH_VARARGS },
|
||||
{ "flush", (PyCFunction)lad_flush, METH_VARARGS },
|
||||
{ "close", (PyCFunction)lad_close, METH_VARARGS },
|
||||
{ "fileno", (PyCFunction)lad_fileno, METH_VARARGS },
|
||||
{ "getptr", (PyCFunction)lad_getptr, METH_VARARGS },
|
||||
{ "obufcount", (PyCFunction)lad_obufcount, METH_NOARGS },
|
||||
{ "obuffree", (PyCFunction)lad_obuffree, METH_NOARGS },
|
||||
{ "flush", (PyCFunction)lad_flush, METH_NOARGS },
|
||||
{ "close", (PyCFunction)lad_close, METH_NOARGS },
|
||||
{ "fileno", (PyCFunction)lad_fileno, METH_NOARGS },
|
||||
{ "getptr", (PyCFunction)lad_getptr, METH_NOARGS },
|
||||
{ NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
|
@ -114,10 +114,8 @@ mmap_object_dealloc(mmap_object *m_obj)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
mmap_close_method(mmap_object *self, PyObject *args)
|
||||
mmap_close_method(mmap_object *self, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":close"))
|
||||
return NULL;
|
||||
#ifdef MS_WINDOWS
|
||||
/* For each resource we maintain, we need to check
|
||||
the value is valid, and if so, free the resource
|
||||
|
@ -175,11 +173,9 @@ do { \
|
|||
|
||||
static PyObject *
|
||||
mmap_read_byte_method(mmap_object *self,
|
||||
PyObject *args)
|
||||
PyObject *unused)
|
||||
{
|
||||
CHECK_VALID(NULL);
|
||||
if (!PyArg_ParseTuple(args, ":read_byte"))
|
||||
return NULL;
|
||||
if (self->pos < self->size) {
|
||||
char value = self->data[self->pos];
|
||||
self->pos += 1;
|
||||
|
@ -192,7 +188,7 @@ mmap_read_byte_method(mmap_object *self,
|
|||
|
||||
static PyObject *
|
||||
mmap_read_line_method(mmap_object *self,
|
||||
PyObject *args)
|
||||
PyObject *unused)
|
||||
{
|
||||
char *start = self->data+self->pos;
|
||||
char *eof = self->data+self->size;
|
||||
|
@ -200,8 +196,6 @@ mmap_read_line_method(mmap_object *self,
|
|||
PyObject *result;
|
||||
|
||||
CHECK_VALID(NULL);
|
||||
if (!PyArg_ParseTuple(args, ":readline"))
|
||||
return NULL;
|
||||
|
||||
eol = memchr(start, '\n', self->size - self->pos);
|
||||
if (!eol)
|
||||
|
@ -332,11 +326,9 @@ mmap_write_byte_method(mmap_object *self,
|
|||
|
||||
static PyObject *
|
||||
mmap_size_method(mmap_object *self,
|
||||
PyObject *args)
|
||||
PyObject *unused)
|
||||
{
|
||||
CHECK_VALID(NULL);
|
||||
if (!PyArg_ParseTuple(args, ":size"))
|
||||
return NULL;
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
if (self->file_handle != INVALID_HANDLE_VALUE) {
|
||||
|
@ -472,12 +464,10 @@ mmap_resize_method(mmap_object *self,
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
mmap_tell_method(mmap_object *self, PyObject *args)
|
||||
mmap_tell_method(mmap_object *self, PyObject *unused)
|
||||
{
|
||||
CHECK_VALID(NULL);
|
||||
if (!PyArg_ParseTuple(args, ":tell"))
|
||||
return NULL;
|
||||
return Py_BuildValue("l", (long) self->pos);
|
||||
return PyInt_FromLong((long) self->pos);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
@ -493,7 +483,7 @@ mmap_flush_method(mmap_object *self, PyObject *args)
|
|||
return NULL;
|
||||
} else {
|
||||
#ifdef MS_WINDOWS
|
||||
return Py_BuildValue("l", (long)
|
||||
return PyInt_FromLong((long)
|
||||
FlushViewOfFile(self->data+offset, size));
|
||||
#endif /* MS_WINDOWS */
|
||||
#ifdef UNIX
|
||||
|
@ -505,7 +495,7 @@ mmap_flush_method(mmap_object *self, PyObject *args)
|
|||
PyErr_SetFromErrno(mmap_module_error);
|
||||
return NULL;
|
||||
}
|
||||
return Py_BuildValue("l", (long) 0);
|
||||
return PyInt_FromLong(0);
|
||||
#endif /* UNIX */
|
||||
}
|
||||
}
|
||||
|
@ -578,17 +568,17 @@ mmap_move_method(mmap_object *self, PyObject *args)
|
|||
}
|
||||
|
||||
static struct PyMethodDef mmap_object_methods[] = {
|
||||
{"close", (PyCFunction) mmap_close_method, METH_VARARGS},
|
||||
{"close", (PyCFunction) mmap_close_method, METH_NOARGS},
|
||||
{"find", (PyCFunction) mmap_find_method, METH_VARARGS},
|
||||
{"flush", (PyCFunction) mmap_flush_method, METH_VARARGS},
|
||||
{"move", (PyCFunction) mmap_move_method, METH_VARARGS},
|
||||
{"read", (PyCFunction) mmap_read_method, METH_VARARGS},
|
||||
{"read_byte", (PyCFunction) mmap_read_byte_method, METH_VARARGS},
|
||||
{"readline", (PyCFunction) mmap_read_line_method, METH_VARARGS},
|
||||
{"read_byte", (PyCFunction) mmap_read_byte_method, METH_NOARGS},
|
||||
{"readline", (PyCFunction) mmap_read_line_method, METH_NOARGS},
|
||||
{"resize", (PyCFunction) mmap_resize_method, METH_VARARGS},
|
||||
{"seek", (PyCFunction) mmap_seek_method, METH_VARARGS},
|
||||
{"size", (PyCFunction) mmap_size_method, METH_VARARGS},
|
||||
{"tell", (PyCFunction) mmap_tell_method, METH_VARARGS},
|
||||
{"size", (PyCFunction) mmap_size_method, METH_NOARGS},
|
||||
{"tell", (PyCFunction) mmap_tell_method, METH_NOARGS},
|
||||
{"write", (PyCFunction) mmap_write_method, METH_VARARGS},
|
||||
{"write_byte", (PyCFunction) mmap_write_byte_method, METH_VARARGS},
|
||||
{NULL, NULL} /* sentinel */
|
||||
|
|
|
@ -296,12 +296,10 @@ _do_ioctl_0(int fd, PyObject *args, char *fname, int cmd)
|
|||
*/
|
||||
|
||||
static PyObject *
|
||||
oss_nonblock(oss_audio_t *self, PyObject *args)
|
||||
oss_nonblock(oss_audio_t *self, PyObject *unused)
|
||||
{
|
||||
/* Hmmm: it doesn't appear to be possible to return to blocking
|
||||
mode once we're in non-blocking mode! */
|
||||
if (!PyArg_ParseTuple(args, ":nonblock"))
|
||||
return NULL;
|
||||
if (ioctl(self->fd, SNDCTL_DSP_NONBLOCK, NULL) == -1)
|
||||
return PyErr_SetFromErrno(PyExc_IOError);
|
||||
Py_INCREF(Py_None);
|
||||
|
@ -315,11 +313,9 @@ oss_setfmt(oss_audio_t *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
oss_getfmts(oss_audio_t *self, PyObject *args)
|
||||
oss_getfmts(oss_audio_t *self, PyObject *unused)
|
||||
{
|
||||
int mask;
|
||||
if (!PyArg_ParseTuple(args, ":getfmts"))
|
||||
return NULL;
|
||||
if (ioctl(self->fd, SNDCTL_DSP_GETFMTS, &mask) == -1)
|
||||
return PyErr_SetFromErrno(PyExc_IOError);
|
||||
return PyInt_FromLong(mask);
|
||||
|
@ -459,11 +455,8 @@ oss_writeall(oss_audio_t *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
oss_close(oss_audio_t *self, PyObject *args)
|
||||
oss_close(oss_audio_t *self, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":close"))
|
||||
return NULL;
|
||||
|
||||
if (self->fd >= 0) {
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
close(self->fd);
|
||||
|
@ -475,10 +468,8 @@ oss_close(oss_audio_t *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
oss_fileno(oss_audio_t *self, PyObject *args)
|
||||
oss_fileno(oss_audio_t *self, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":fileno"))
|
||||
return NULL;
|
||||
return PyInt_FromLong(self->fd);
|
||||
}
|
||||
|
||||
|
@ -578,13 +569,11 @@ _ssize(oss_audio_t *self, int *nchannels, int *ssize)
|
|||
/* bufsize returns the size of the hardware audio buffer in number
|
||||
of samples */
|
||||
static PyObject *
|
||||
oss_bufsize(oss_audio_t *self, PyObject *args)
|
||||
oss_bufsize(oss_audio_t *self, PyObject *unused)
|
||||
{
|
||||
audio_buf_info ai;
|
||||
int nchannels=0, ssize=0;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":bufsize")) return NULL;
|
||||
|
||||
if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) {
|
||||
PyErr_SetFromErrno(PyExc_IOError);
|
||||
return NULL;
|
||||
|
@ -599,14 +588,11 @@ oss_bufsize(oss_audio_t *self, PyObject *args)
|
|||
/* obufcount returns the number of samples that are available in the
|
||||
hardware for playing */
|
||||
static PyObject *
|
||||
oss_obufcount(oss_audio_t *self, PyObject *args)
|
||||
oss_obufcount(oss_audio_t *self, PyObject *unused)
|
||||
{
|
||||
audio_buf_info ai;
|
||||
int nchannels=0, ssize=0;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":obufcount"))
|
||||
return NULL;
|
||||
|
||||
if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) {
|
||||
PyErr_SetFromErrno(PyExc_IOError);
|
||||
return NULL;
|
||||
|
@ -622,14 +608,11 @@ oss_obufcount(oss_audio_t *self, PyObject *args)
|
|||
/* obufcount returns the number of samples that can be played without
|
||||
blocking */
|
||||
static PyObject *
|
||||
oss_obuffree(oss_audio_t *self, PyObject *args)
|
||||
oss_obuffree(oss_audio_t *self, PyObject *unused)
|
||||
{
|
||||
audio_buf_info ai;
|
||||
int nchannels=0, ssize=0;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":obuffree"))
|
||||
return NULL;
|
||||
|
||||
if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) {
|
||||
PyErr_SetFromErrno(PyExc_IOError);
|
||||
return NULL;
|
||||
|
@ -642,14 +625,11 @@ oss_obuffree(oss_audio_t *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
oss_getptr(oss_audio_t *self, PyObject *args)
|
||||
oss_getptr(oss_audio_t *self, PyObject *unused)
|
||||
{
|
||||
count_info info;
|
||||
int req;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":getptr"))
|
||||
return NULL;
|
||||
|
||||
if (self->mode == O_RDONLY)
|
||||
req = SNDCTL_DSP_GETIPTR;
|
||||
else
|
||||
|
@ -667,11 +647,8 @@ oss_getptr(oss_audio_t *self, PyObject *args)
|
|||
*/
|
||||
|
||||
static PyObject *
|
||||
oss_mixer_close(oss_mixer_t *self, PyObject *args)
|
||||
oss_mixer_close(oss_mixer_t *self, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":close"))
|
||||
return NULL;
|
||||
|
||||
if (self->fd >= 0) {
|
||||
close(self->fd);
|
||||
self->fd = -1;
|
||||
|
@ -681,10 +658,8 @@ oss_mixer_close(oss_mixer_t *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
oss_mixer_fileno(oss_mixer_t *self, PyObject *args)
|
||||
oss_mixer_fileno(oss_mixer_t *self, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":fileno"))
|
||||
return NULL;
|
||||
return PyInt_FromLong(self->fd);
|
||||
}
|
||||
|
||||
|
@ -782,13 +757,13 @@ static PyMethodDef oss_methods[] = {
|
|||
{ "read", (PyCFunction)oss_read, METH_VARARGS },
|
||||
{ "write", (PyCFunction)oss_write, METH_VARARGS },
|
||||
{ "writeall", (PyCFunction)oss_writeall, METH_VARARGS },
|
||||
{ "close", (PyCFunction)oss_close, METH_VARARGS },
|
||||
{ "fileno", (PyCFunction)oss_fileno, METH_VARARGS },
|
||||
{ "close", (PyCFunction)oss_close, METH_NOARGS },
|
||||
{ "fileno", (PyCFunction)oss_fileno, METH_NOARGS },
|
||||
|
||||
/* Simple ioctl wrappers */
|
||||
{ "nonblock", (PyCFunction)oss_nonblock, METH_VARARGS },
|
||||
{ "nonblock", (PyCFunction)oss_nonblock, METH_NOARGS },
|
||||
{ "setfmt", (PyCFunction)oss_setfmt, METH_VARARGS },
|
||||
{ "getfmts", (PyCFunction)oss_getfmts, METH_VARARGS },
|
||||
{ "getfmts", (PyCFunction)oss_getfmts, METH_NOARGS },
|
||||
{ "channels", (PyCFunction)oss_channels, METH_VARARGS },
|
||||
{ "speed", (PyCFunction)oss_speed, METH_VARARGS },
|
||||
{ "sync", (PyCFunction)oss_sync, METH_VARARGS },
|
||||
|
@ -797,10 +772,10 @@ static PyMethodDef oss_methods[] = {
|
|||
|
||||
/* Convenience methods -- wrap a couple of ioctls together */
|
||||
{ "setparameters", (PyCFunction)oss_setparameters, METH_VARARGS },
|
||||
{ "bufsize", (PyCFunction)oss_bufsize, METH_VARARGS },
|
||||
{ "obufcount", (PyCFunction)oss_obufcount, METH_VARARGS },
|
||||
{ "obuffree", (PyCFunction)oss_obuffree, METH_VARARGS },
|
||||
{ "getptr", (PyCFunction)oss_getptr, METH_VARARGS },
|
||||
{ "bufsize", (PyCFunction)oss_bufsize, METH_NOARGS },
|
||||
{ "obufcount", (PyCFunction)oss_obufcount, METH_NOARGS },
|
||||
{ "obuffree", (PyCFunction)oss_obuffree, METH_NOARGS },
|
||||
{ "getptr", (PyCFunction)oss_getptr, METH_NOARGS },
|
||||
|
||||
/* Aliases for backwards compatibility */
|
||||
{ "flush", (PyCFunction)oss_sync, METH_VARARGS },
|
||||
|
@ -810,8 +785,8 @@ static PyMethodDef oss_methods[] = {
|
|||
|
||||
static PyMethodDef oss_mixer_methods[] = {
|
||||
/* Regular file method - OSS mixers are ioctl-only interface */
|
||||
{ "close", (PyCFunction)oss_mixer_close, METH_VARARGS },
|
||||
{ "fileno", (PyCFunction)oss_mixer_fileno, METH_VARARGS },
|
||||
{ "close", (PyCFunction)oss_mixer_close, METH_NOARGS },
|
||||
{ "fileno", (PyCFunction)oss_mixer_fileno, METH_NOARGS },
|
||||
|
||||
/* Simple ioctl wrappers */
|
||||
{ "controls", (PyCFunction)oss_mixer_controls, METH_VARARGS },
|
||||
|
|
|
@ -5282,14 +5282,11 @@ PyDoc_STRVAR(posix_setgroups__doc__,
|
|||
Set the groups of the current process to list.");
|
||||
|
||||
static PyObject *
|
||||
posix_setgroups(PyObject *self, PyObject *args)
|
||||
posix_setgroups(PyObject *self, PyObject *groups)
|
||||
{
|
||||
PyObject *groups;
|
||||
int i, len;
|
||||
gid_t grouplist[MAX_GROUPS];
|
||||
|
||||
if (!PyArg_ParseTuple(args, "O:setgid", &groups))
|
||||
return NULL;
|
||||
if (!PySequence_Check(groups)) {
|
||||
PyErr_SetString(PyExc_TypeError, "setgroups argument must be a sequence");
|
||||
return NULL;
|
||||
|
@ -8020,7 +8017,7 @@ static PyMethodDef posix_methods[] = {
|
|||
{"setgid", posix_setgid, METH_VARARGS, posix_setgid__doc__},
|
||||
#endif /* HAVE_SETGID */
|
||||
#ifdef HAVE_SETGROUPS
|
||||
{"setgroups", posix_setgroups, METH_VARARGS, posix_setgroups__doc__},
|
||||
{"setgroups", posix_setgroups, METH_O, posix_setgroups__doc__},
|
||||
#endif /* HAVE_SETGROUPS */
|
||||
#ifdef HAVE_GETPGID
|
||||
{"getpgid", posix_getpgid, METH_VARARGS, posix_getpgid__doc__},
|
||||
|
|
|
@ -981,16 +981,12 @@ PyDoc_STRVAR(xmlparse_ParseFile__doc__,
|
|||
Parse XML data from file-like object.");
|
||||
|
||||
static PyObject *
|
||||
xmlparse_ParseFile(xmlparseobject *self, PyObject *args)
|
||||
xmlparse_ParseFile(xmlparseobject *self, PyObject *f)
|
||||
{
|
||||
int rv = 1;
|
||||
PyObject *f;
|
||||
FILE *fp;
|
||||
PyObject *readmethod = NULL;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "O:ParseFile", &f))
|
||||
return NULL;
|
||||
|
||||
if (PyFile_Check(f)) {
|
||||
fp = PyFile_AsFile(f);
|
||||
}
|
||||
|
@ -1062,11 +1058,8 @@ PyDoc_STRVAR(xmlparse_GetBase__doc__,
|
|||
Return base URL string for the parser.");
|
||||
|
||||
static PyObject *
|
||||
xmlparse_GetBase(xmlparseobject *self, PyObject *args)
|
||||
xmlparse_GetBase(xmlparseobject *self, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":GetBase"))
|
||||
return NULL;
|
||||
|
||||
return Py_BuildValue("z", XML_GetBase(self->itself));
|
||||
}
|
||||
|
||||
|
@ -1077,29 +1070,21 @@ If the event was generated by a large amount of text (such as a start tag\n\
|
|||
for an element with many attributes), not all of the text may be available.");
|
||||
|
||||
static PyObject *
|
||||
xmlparse_GetInputContext(xmlparseobject *self, PyObject *args)
|
||||
xmlparse_GetInputContext(xmlparseobject *self, PyObject *unused)
|
||||
{
|
||||
PyObject *result = NULL;
|
||||
if (self->in_callback) {
|
||||
int offset, size;
|
||||
const char *buffer
|
||||
= XML_GetInputContext(self->itself, &offset, &size);
|
||||
|
||||
if (PyArg_ParseTuple(args, ":GetInputContext")) {
|
||||
if (self->in_callback) {
|
||||
int offset, size;
|
||||
const char *buffer
|
||||
= XML_GetInputContext(self->itself, &offset, &size);
|
||||
|
||||
if (buffer != NULL)
|
||||
result = PyString_FromStringAndSize(buffer + offset, size - offset);
|
||||
else {
|
||||
result = Py_None;
|
||||
Py_INCREF(result);
|
||||
}
|
||||
}
|
||||
else {
|
||||
result = Py_None;
|
||||
Py_INCREF(result);
|
||||
}
|
||||
if (buffer != NULL)
|
||||
return PyString_FromStringAndSize(buffer + offset,
|
||||
size - offset);
|
||||
else
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
return result;
|
||||
else
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(xmlparse_ExternalEntityParserCreate__doc__,
|
||||
|
@ -1228,7 +1213,7 @@ xmlparse_UseForeignDTD(xmlparseobject *self, PyObject *args)
|
|||
PyObject *flagobj = NULL;
|
||||
XML_Bool flag = XML_TRUE;
|
||||
enum XML_Error rc;
|
||||
if (!PyArg_ParseTuple(args, "|O:UseForeignDTD", &flagobj))
|
||||
if (!PyArg_UnpackTuple(args, "UseForeignDTD", 0, 1, &flagobj))
|
||||
return NULL;
|
||||
if (flagobj != NULL)
|
||||
flag = PyObject_IsTrue(flagobj) ? XML_TRUE : XML_FALSE;
|
||||
|
@ -1245,17 +1230,17 @@ static struct PyMethodDef xmlparse_methods[] = {
|
|||
{"Parse", (PyCFunction)xmlparse_Parse,
|
||||
METH_VARARGS, xmlparse_Parse__doc__},
|
||||
{"ParseFile", (PyCFunction)xmlparse_ParseFile,
|
||||
METH_VARARGS, xmlparse_ParseFile__doc__},
|
||||
METH_O, xmlparse_ParseFile__doc__},
|
||||
{"SetBase", (PyCFunction)xmlparse_SetBase,
|
||||
METH_VARARGS, xmlparse_SetBase__doc__},
|
||||
{"GetBase", (PyCFunction)xmlparse_GetBase,
|
||||
METH_VARARGS, xmlparse_GetBase__doc__},
|
||||
METH_NOARGS, xmlparse_GetBase__doc__},
|
||||
{"ExternalEntityParserCreate", (PyCFunction)xmlparse_ExternalEntityParserCreate,
|
||||
METH_VARARGS, xmlparse_ExternalEntityParserCreate__doc__},
|
||||
{"SetParamEntityParsing", (PyCFunction)xmlparse_SetParamEntityParsing,
|
||||
METH_VARARGS, xmlparse_SetParamEntityParsing__doc__},
|
||||
{"GetInputContext", (PyCFunction)xmlparse_GetInputContext,
|
||||
METH_VARARGS, xmlparse_GetInputContext__doc__},
|
||||
METH_NOARGS, xmlparse_GetInputContext__doc__},
|
||||
#if XML_COMBINED_VERSION >= 19505
|
||||
{"UseForeignDTD", (PyCFunction)xmlparse_UseForeignDTD,
|
||||
METH_VARARGS, xmlparse_UseForeignDTD__doc__},
|
||||
|
|
|
@ -194,12 +194,9 @@ resource_setrlimit(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
resource_getpagesize(PyObject *self, PyObject *args)
|
||||
resource_getpagesize(PyObject *self, PyObject *unused)
|
||||
{
|
||||
long pagesize = 0;
|
||||
if (!PyArg_ParseTuple(args, ":getpagesize"))
|
||||
return NULL;
|
||||
|
||||
#if defined(HAVE_GETPAGESIZE)
|
||||
pagesize = getpagesize();
|
||||
#elif defined(HAVE_SYSCONF)
|
||||
|
@ -221,7 +218,7 @@ resource_methods[] = {
|
|||
{"getrusage", resource_getrusage, METH_VARARGS},
|
||||
{"getrlimit", resource_getrlimit, METH_VARARGS},
|
||||
{"setrlimit", resource_setrlimit, METH_VARARGS},
|
||||
{"getpagesize", resource_getpagesize, METH_VARARGS},
|
||||
{"getpagesize", resource_getpagesize, METH_NOARGS},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
|
@ -218,7 +218,7 @@ select_select(PyObject *self, PyObject *args)
|
|||
int n;
|
||||
|
||||
/* convert arguments */
|
||||
if (!PyArg_ParseTuple(args, "OOO|O:select",
|
||||
if (!PyArg_UnpackTuple(args, "select", 3, 4,
|
||||
&ifdlist, &ofdlist, &efdlist, &tout))
|
||||
return NULL;
|
||||
|
||||
|
@ -415,15 +415,11 @@ PyDoc_STRVAR(poll_unregister_doc,
|
|||
Remove a file descriptor being tracked by the polling object.");
|
||||
|
||||
static PyObject *
|
||||
poll_unregister(pollObject *self, PyObject *args)
|
||||
poll_unregister(pollObject *self, PyObject *o)
|
||||
{
|
||||
PyObject *o, *key;
|
||||
PyObject *key;
|
||||
int fd;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "O:unregister", &o)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
fd = PyObject_AsFileDescriptor( o );
|
||||
if (fd == -1)
|
||||
return NULL;
|
||||
|
@ -459,7 +455,7 @@ poll_poll(pollObject *self, PyObject *args)
|
|||
int timeout = 0, poll_result, i, j;
|
||||
PyObject *value = NULL, *num = NULL;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "|O:poll", &tout)) {
|
||||
if (!PyArg_UnpackTuple(args, "poll", 0, 1, &tout)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -548,7 +544,7 @@ static PyMethodDef poll_methods[] = {
|
|||
{"register", (PyCFunction)poll_register,
|
||||
METH_VARARGS, poll_register_doc},
|
||||
{"unregister", (PyCFunction)poll_unregister,
|
||||
METH_VARARGS, poll_unregister_doc},
|
||||
METH_O, poll_unregister_doc},
|
||||
{"poll", (PyCFunction)poll_poll,
|
||||
METH_VARARGS, poll_poll_doc},
|
||||
{NULL, NULL} /* sentinel */
|
||||
|
@ -614,16 +610,9 @@ PyDoc_STRVAR(poll_doc,
|
|||
unregistering file descriptors, and then polling them for I/O events.");
|
||||
|
||||
static PyObject *
|
||||
select_poll(PyObject *self, PyObject *args)
|
||||
select_poll(PyObject *self, PyObject *unused)
|
||||
{
|
||||
pollObject *rv;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":poll"))
|
||||
return NULL;
|
||||
rv = newPollObject();
|
||||
if ( rv == NULL )
|
||||
return NULL;
|
||||
return (PyObject *)rv;
|
||||
return (PyObject *)newPollObject();
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
@ -684,7 +673,7 @@ On Windows, only sockets are supported; on Unix, all file descriptors.");
|
|||
static PyMethodDef select_methods[] = {
|
||||
{"select", select_select, METH_VARARGS, select_doc},
|
||||
#if defined(HAVE_POLL)
|
||||
{"poll", select_poll, METH_VARARGS, poll_doc},
|
||||
{"poll", select_poll, METH_NOARGS, poll_doc},
|
||||
#endif /* HAVE_POLL */
|
||||
{0, 0}, /* sentinel */
|
||||
};
|
||||
|
|
|
@ -405,14 +405,10 @@ SHA_dealloc(PyObject *ptr)
|
|||
PyDoc_STRVAR(SHA256_copy__doc__, "Return a copy of the hash object.");
|
||||
|
||||
static PyObject *
|
||||
SHA256_copy(SHAobject *self, PyObject *args)
|
||||
SHA256_copy(SHAobject *self, PyObject *unused)
|
||||
{
|
||||
SHAobject *newobj;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":copy")) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (((PyObject*)self)->ob_type == &SHA256type) {
|
||||
if ( (newobj = newSHA256object())==NULL)
|
||||
return NULL;
|
||||
|
@ -429,14 +425,11 @@ PyDoc_STRVAR(SHA256_digest__doc__,
|
|||
"Return the digest value as a string of binary data.");
|
||||
|
||||
static PyObject *
|
||||
SHA256_digest(SHAobject *self, PyObject *args)
|
||||
SHA256_digest(SHAobject *self, PyObject *unused)
|
||||
{
|
||||
unsigned char digest[SHA_DIGESTSIZE];
|
||||
SHAobject temp;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":digest"))
|
||||
return NULL;
|
||||
|
||||
SHAcopy(self, &temp);
|
||||
sha_final(digest, &temp);
|
||||
return PyString_FromStringAndSize((const char *)digest, self->digestsize);
|
||||
|
@ -446,7 +439,7 @@ PyDoc_STRVAR(SHA256_hexdigest__doc__,
|
|||
"Return the digest value as a string of hexadecimal digits.");
|
||||
|
||||
static PyObject *
|
||||
SHA256_hexdigest(SHAobject *self, PyObject *args)
|
||||
SHA256_hexdigest(SHAobject *self, PyObject *unused)
|
||||
{
|
||||
unsigned char digest[SHA_DIGESTSIZE];
|
||||
SHAobject temp;
|
||||
|
@ -454,9 +447,6 @@ SHA256_hexdigest(SHAobject *self, PyObject *args)
|
|||
char *hex_digest;
|
||||
int i, j;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":hexdigest"))
|
||||
return NULL;
|
||||
|
||||
/* Get the raw (binary) digest value */
|
||||
SHAcopy(self, &temp);
|
||||
sha_final(digest, &temp);
|
||||
|
@ -503,9 +493,9 @@ SHA256_update(SHAobject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyMethodDef SHA_methods[] = {
|
||||
{"copy", (PyCFunction)SHA256_copy, METH_VARARGS, SHA256_copy__doc__},
|
||||
{"digest", (PyCFunction)SHA256_digest, METH_VARARGS, SHA256_digest__doc__},
|
||||
{"hexdigest", (PyCFunction)SHA256_hexdigest, METH_VARARGS, SHA256_hexdigest__doc__},
|
||||
{"copy", (PyCFunction)SHA256_copy, METH_NOARGS, SHA256_copy__doc__},
|
||||
{"digest", (PyCFunction)SHA256_digest, METH_NOARGS, SHA256_digest__doc__},
|
||||
{"hexdigest", (PyCFunction)SHA256_hexdigest, METH_NOARGS, SHA256_hexdigest__doc__},
|
||||
{"update", (PyCFunction)SHA256_update, METH_VARARGS, SHA256_update__doc__},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
|
|
@ -471,14 +471,10 @@ SHA512_dealloc(PyObject *ptr)
|
|||
PyDoc_STRVAR(SHA512_copy__doc__, "Return a copy of the hash object.");
|
||||
|
||||
static PyObject *
|
||||
SHA512_copy(SHAobject *self, PyObject *args)
|
||||
SHA512_copy(SHAobject *self, PyObject *unused)
|
||||
{
|
||||
SHAobject *newobj;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":copy")) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (((PyObject*)self)->ob_type == &SHA512type) {
|
||||
if ( (newobj = newSHA512object())==NULL)
|
||||
return NULL;
|
||||
|
@ -495,14 +491,11 @@ PyDoc_STRVAR(SHA512_digest__doc__,
|
|||
"Return the digest value as a string of binary data.");
|
||||
|
||||
static PyObject *
|
||||
SHA512_digest(SHAobject *self, PyObject *args)
|
||||
SHA512_digest(SHAobject *self, PyObject *unused)
|
||||
{
|
||||
unsigned char digest[SHA_DIGESTSIZE];
|
||||
SHAobject temp;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":digest"))
|
||||
return NULL;
|
||||
|
||||
SHAcopy(self, &temp);
|
||||
sha512_final(digest, &temp);
|
||||
return PyString_FromStringAndSize((const char *)digest, self->digestsize);
|
||||
|
@ -512,7 +505,7 @@ PyDoc_STRVAR(SHA512_hexdigest__doc__,
|
|||
"Return the digest value as a string of hexadecimal digits.");
|
||||
|
||||
static PyObject *
|
||||
SHA512_hexdigest(SHAobject *self, PyObject *args)
|
||||
SHA512_hexdigest(SHAobject *self, PyObject *unused)
|
||||
{
|
||||
unsigned char digest[SHA_DIGESTSIZE];
|
||||
SHAobject temp;
|
||||
|
@ -520,9 +513,6 @@ SHA512_hexdigest(SHAobject *self, PyObject *args)
|
|||
char *hex_digest;
|
||||
int i, j;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":hexdigest"))
|
||||
return NULL;
|
||||
|
||||
/* Get the raw (binary) digest value */
|
||||
SHAcopy(self, &temp);
|
||||
sha512_final(digest, &temp);
|
||||
|
@ -538,7 +528,7 @@ SHA512_hexdigest(SHAobject *self, PyObject *args)
|
|||
}
|
||||
|
||||
/* Make hex version of the digest */
|
||||
for(i=j=0; i<self->digestsize; i++) {
|
||||
for (i=j=0; i<self->digestsize; i++) {
|
||||
char c;
|
||||
c = (digest[i] >> 4) & 0xf;
|
||||
c = (c>9) ? c+'a'-10 : c + '0';
|
||||
|
@ -569,9 +559,9 @@ SHA512_update(SHAobject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyMethodDef SHA_methods[] = {
|
||||
{"copy", (PyCFunction)SHA512_copy, METH_VARARGS, SHA512_copy__doc__},
|
||||
{"digest", (PyCFunction)SHA512_digest, METH_VARARGS, SHA512_digest__doc__},
|
||||
{"hexdigest", (PyCFunction)SHA512_hexdigest, METH_VARARGS, SHA512_hexdigest__doc__},
|
||||
{"copy", (PyCFunction)SHA512_copy, METH_NOARGS, SHA512_copy__doc__},
|
||||
{"digest", (PyCFunction)SHA512_digest, METH_NOARGS, SHA512_digest__doc__},
|
||||
{"hexdigest", (PyCFunction)SHA512_hexdigest, METH_NOARGS, SHA512_hexdigest__doc__},
|
||||
{"update", (PyCFunction)SHA512_update, METH_VARARGS, SHA512_update__doc__},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
|
|
@ -358,13 +358,10 @@ SHA_dealloc(PyObject *ptr)
|
|||
PyDoc_STRVAR(SHA_copy__doc__, "Return a copy of the hashing object.");
|
||||
|
||||
static PyObject *
|
||||
SHA_copy(SHAobject *self, PyObject *args)
|
||||
SHA_copy(SHAobject *self, PyObject *unused)
|
||||
{
|
||||
SHAobject *newobj;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":copy")) {
|
||||
return NULL;
|
||||
}
|
||||
if ( (newobj = newSHAobject())==NULL)
|
||||
return NULL;
|
||||
|
||||
|
@ -376,14 +373,11 @@ PyDoc_STRVAR(SHA_digest__doc__,
|
|||
"Return the digest value as a string of binary data.");
|
||||
|
||||
static PyObject *
|
||||
SHA_digest(SHAobject *self, PyObject *args)
|
||||
SHA_digest(SHAobject *self, PyObject *unused)
|
||||
{
|
||||
unsigned char digest[SHA_DIGESTSIZE];
|
||||
SHAobject temp;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":digest"))
|
||||
return NULL;
|
||||
|
||||
SHAcopy(self, &temp);
|
||||
sha_final(digest, &temp);
|
||||
return PyString_FromStringAndSize((const char *)digest, sizeof(digest));
|
||||
|
@ -393,7 +387,7 @@ PyDoc_STRVAR(SHA_hexdigest__doc__,
|
|||
"Return the digest value as a string of hexadecimal digits.");
|
||||
|
||||
static PyObject *
|
||||
SHA_hexdigest(SHAobject *self, PyObject *args)
|
||||
SHA_hexdigest(SHAobject *self, PyObject *unused)
|
||||
{
|
||||
unsigned char digest[SHA_DIGESTSIZE];
|
||||
SHAobject temp;
|
||||
|
@ -401,9 +395,6 @@ SHA_hexdigest(SHAobject *self, PyObject *args)
|
|||
char *hex_digest;
|
||||
int i, j;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":hexdigest"))
|
||||
return NULL;
|
||||
|
||||
/* Get the raw (binary) digest value */
|
||||
SHAcopy(self, &temp);
|
||||
sha_final(digest, &temp);
|
||||
|
@ -450,9 +441,9 @@ SHA_update(SHAobject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyMethodDef SHA_methods[] = {
|
||||
{"copy", (PyCFunction)SHA_copy, METH_VARARGS, SHA_copy__doc__},
|
||||
{"digest", (PyCFunction)SHA_digest, METH_VARARGS, SHA_digest__doc__},
|
||||
{"hexdigest", (PyCFunction)SHA_hexdigest, METH_VARARGS, SHA_hexdigest__doc__},
|
||||
{"copy", (PyCFunction)SHA_copy, METH_NOARGS, SHA_copy__doc__},
|
||||
{"digest", (PyCFunction)SHA_digest, METH_NOARGS, SHA_digest__doc__},
|
||||
{"hexdigest", (PyCFunction)SHA_hexdigest, METH_NOARGS, SHA_hexdigest__doc__},
|
||||
{"update", (PyCFunction)SHA_update, METH_VARARGS, SHA_update__doc__},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
|
|
@ -2472,7 +2472,7 @@ sock_recvfrom_buf(PySocketSockObject *s, PyObject *args, PyObject* kwds)
|
|||
|
||||
/* Return the number of bytes read and the address. Note that we do
|
||||
not do anything special here in the case that readlen < recvlen. */
|
||||
ret = PyTuple_Pack(2, PyInt_FromLong(readlen), addr);
|
||||
ret = Py_BuildValue("lO", readlen, addr);
|
||||
|
||||
finally:
|
||||
Py_XDECREF(addr);
|
||||
|
@ -2889,12 +2889,10 @@ static PyTypeObject sock_type = {
|
|||
|
||||
/*ARGSUSED*/
|
||||
static PyObject *
|
||||
socket_gethostname(PyObject *self, PyObject *args)
|
||||
socket_gethostname(PyObject *self, PyObject *unused)
|
||||
{
|
||||
char buf[1024];
|
||||
int res;
|
||||
if (!PyArg_ParseTuple(args, ":gethostname"))
|
||||
return NULL;
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
res = gethostname(buf, (int) sizeof buf - 1);
|
||||
Py_END_ALLOW_THREADS
|
||||
|
@ -3986,13 +3984,13 @@ static PyMethodDef socket_methods[] = {
|
|||
{"gethostbyaddr", socket_gethostbyaddr,
|
||||
METH_VARARGS, gethostbyaddr_doc},
|
||||
{"gethostname", socket_gethostname,
|
||||
METH_VARARGS, gethostname_doc},
|
||||
METH_NOARGS, gethostname_doc},
|
||||
{"getservbyname", socket_getservbyname,
|
||||
METH_VARARGS, getservbyname_doc},
|
||||
{"getservbyport", socket_getservbyport,
|
||||
METH_VARARGS, getservbyport_doc},
|
||||
{"getprotobyname", socket_getprotobyname,
|
||||
METH_VARARGS,getprotobyname_doc},
|
||||
METH_VARARGS, getprotobyname_doc},
|
||||
#ifndef NO_DUP
|
||||
{"fromfd", socket_fromfd,
|
||||
METH_VARARGS, fromfd_doc},
|
||||
|
@ -4364,8 +4362,8 @@ init_socket(void)
|
|||
PyModule_AddIntConstant(m, "BTPROTO_SCO", BTPROTO_SCO);
|
||||
#endif
|
||||
PyModule_AddIntConstant(m, "BTPROTO_RFCOMM", BTPROTO_RFCOMM);
|
||||
PyModule_AddObject(m, "BDADDR_ANY", Py_BuildValue("s", "00:00:00:00:00:00"));
|
||||
PyModule_AddObject(m, "BDADDR_LOCAL", Py_BuildValue("s", "00:00:00:FF:FF:FF"));
|
||||
PyModule_AddStringConstant(m, "BDADDR_ANY", "00:00:00:00:00:00");
|
||||
PyModule_AddStringConstant(m, "BDADDR_LOCAL", "00:00:00:FF:FF:FF");
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NETPACKET_PACKET_H
|
||||
|
|
|
@ -98,10 +98,8 @@ syslog_syslog(PyObject * self, PyObject * args)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
syslog_closelog(PyObject *self, PyObject *args)
|
||||
syslog_closelog(PyObject *self, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":closelog"))
|
||||
return NULL;
|
||||
closelog();
|
||||
Py_XDECREF(S_ident_o);
|
||||
S_ident_o = NULL;
|
||||
|
@ -146,7 +144,7 @@ syslog_log_upto(PyObject *self, PyObject *args)
|
|||
|
||||
static PyMethodDef syslog_methods[] = {
|
||||
{"openlog", syslog_openlog, METH_VARARGS},
|
||||
{"closelog", syslog_closelog, METH_VARARGS},
|
||||
{"closelog", syslog_closelog, METH_NOARGS},
|
||||
{"syslog", syslog_syslog, METH_VARARGS},
|
||||
{"setlogmask", syslog_setlogmask, METH_VARARGS},
|
||||
{"LOG_MASK", syslog_log_mask, METH_VARARGS},
|
||||
|
|
|
@ -456,7 +456,8 @@ thread_PyThread_start_new_thread(PyObject *self, PyObject *fargs)
|
|||
struct bootstate *boot;
|
||||
long ident;
|
||||
|
||||
if (!PyArg_ParseTuple(fargs, "OO|O:start_new_thread", &func, &args, &keyw))
|
||||
if (!PyArg_UnpackTuple(fargs, "start_new_thread", 2, 3,
|
||||
&func, &args, &keyw))
|
||||
return NULL;
|
||||
if (!PyCallable_Check(func)) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
|
|
|
@ -123,11 +123,9 @@ _PyTime_DoubleToTimet(double x)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
time_time(PyObject *self, PyObject *args)
|
||||
time_time(PyObject *self, PyObject *unused)
|
||||
{
|
||||
double secs;
|
||||
if (!PyArg_ParseTuple(args, ":time"))
|
||||
return NULL;
|
||||
secs = floattime();
|
||||
if (secs == 0.0) {
|
||||
PyErr_SetFromErrno(PyExc_IOError);
|
||||
|
@ -153,10 +151,8 @@ Fractions of a second may be present if the system clock provides them.");
|
|||
#endif
|
||||
|
||||
static PyObject *
|
||||
time_clock(PyObject *self, PyObject *args)
|
||||
time_clock(PyObject *self, PyObject *unused)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ":clock"))
|
||||
return NULL;
|
||||
return PyFloat_FromDouble(((double)clock()) / CLOCKS_PER_SEC);
|
||||
}
|
||||
#endif /* HAVE_CLOCK */
|
||||
|
@ -164,16 +160,13 @@ time_clock(PyObject *self, PyObject *args)
|
|||
#if defined(MS_WINDOWS) && !defined(__BORLANDC__)
|
||||
/* Due to Mark Hammond and Tim Peters */
|
||||
static PyObject *
|
||||
time_clock(PyObject *self, PyObject *args)
|
||||
time_clock(PyObject *self, PyObject *unused)
|
||||
{
|
||||
static LARGE_INTEGER ctrStart;
|
||||
static double divisor = 0.0;
|
||||
LARGE_INTEGER now;
|
||||
double diff;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":clock"))
|
||||
return NULL;
|
||||
|
||||
if (divisor == 0.0) {
|
||||
LARGE_INTEGER freq;
|
||||
QueryPerformanceCounter(&ctrStart);
|
||||
|
@ -509,7 +502,7 @@ time_asctime(PyObject *self, PyObject *args)
|
|||
PyObject *tup = NULL;
|
||||
struct tm buf;
|
||||
char *p;
|
||||
if (!PyArg_ParseTuple(args, "|O:asctime", &tup))
|
||||
if (!PyArg_UnpackTuple(args, "asctime", 0, 1, &tup))
|
||||
return NULL;
|
||||
if (tup == NULL) {
|
||||
time_t tt = time(NULL);
|
||||
|
@ -536,7 +529,7 @@ time_ctime(PyObject *self, PyObject *args)
|
|||
time_t tt;
|
||||
char *p;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "|O:ctime", &ot))
|
||||
if (!PyArg_UnpackTuple(args, "ctime", 0, 1, &ot))
|
||||
return NULL;
|
||||
if (ot == NULL || ot == Py_None)
|
||||
tt = time(NULL);
|
||||
|
@ -567,13 +560,10 @@ not present, current time as returned by localtime() is used.");
|
|||
|
||||
#ifdef HAVE_MKTIME
|
||||
static PyObject *
|
||||
time_mktime(PyObject *self, PyObject *args)
|
||||
time_mktime(PyObject *self, PyObject *tup)
|
||||
{
|
||||
PyObject *tup;
|
||||
struct tm buf;
|
||||
time_t tt;
|
||||
if (!PyArg_ParseTuple(args, "O:mktime", &tup))
|
||||
return NULL;
|
||||
tt = time(&tt);
|
||||
buf = *localtime(&tt);
|
||||
if (!gettmarg(tup, &buf))
|
||||
|
@ -597,13 +587,10 @@ Convert a time tuple in local time to seconds since the Epoch.");
|
|||
void inittimezone(PyObject *module);
|
||||
|
||||
static PyObject *
|
||||
time_tzset(PyObject *self, PyObject *args)
|
||||
time_tzset(PyObject *self, PyObject *unused)
|
||||
{
|
||||
PyObject* m;
|
||||
|
||||
if (!PyArg_ParseTuple(args, ":tzset"))
|
||||
return NULL;
|
||||
|
||||
m = PyImport_ImportModule("time");
|
||||
if (m == NULL) {
|
||||
return NULL;
|
||||
|
@ -722,9 +709,9 @@ void inittimezone(PyObject *m) {
|
|||
|
||||
|
||||
static PyMethodDef time_methods[] = {
|
||||
{"time", time_time, METH_VARARGS, time_doc},
|
||||
{"time", time_time, METH_NOARGS, time_doc},
|
||||
#ifdef HAVE_CLOCK
|
||||
{"clock", time_clock, METH_VARARGS, clock_doc},
|
||||
{"clock", time_clock, METH_NOARGS, clock_doc},
|
||||
#endif
|
||||
{"sleep", time_sleep, METH_VARARGS, sleep_doc},
|
||||
{"gmtime", time_gmtime, METH_VARARGS, gmtime_doc},
|
||||
|
@ -732,14 +719,14 @@ static PyMethodDef time_methods[] = {
|
|||
{"asctime", time_asctime, METH_VARARGS, asctime_doc},
|
||||
{"ctime", time_ctime, METH_VARARGS, ctime_doc},
|
||||
#ifdef HAVE_MKTIME
|
||||
{"mktime", time_mktime, METH_VARARGS, mktime_doc},
|
||||
{"mktime", time_mktime, METH_O, mktime_doc},
|
||||
#endif
|
||||
#ifdef HAVE_STRFTIME
|
||||
{"strftime", time_strftime, METH_VARARGS, strftime_doc},
|
||||
#endif
|
||||
{"strptime", time_strptime, METH_VARARGS, strptime_doc},
|
||||
#ifdef HAVE_WORKING_TZSET
|
||||
{"tzset", time_tzset, METH_VARARGS, tzset_doc},
|
||||
{"tzset", time_tzset, METH_NOARGS, tzset_doc},
|
||||
#endif
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
|
|
@ -1136,9 +1136,9 @@ instance_ass_item(PyInstanceObject *inst, Py_ssize_t i, PyObject *item)
|
|||
if (func == NULL)
|
||||
return -1;
|
||||
if (item == NULL)
|
||||
arg = Py_BuildValue("i", i);
|
||||
arg = PyInt_FromSsize_t(i);
|
||||
else
|
||||
arg = Py_BuildValue("(iO)", i, item);
|
||||
arg = Py_BuildValue("(nO)", i, item);
|
||||
if (arg == NULL) {
|
||||
Py_DECREF(func);
|
||||
return -1;
|
||||
|
|
|
@ -188,7 +188,7 @@ complex_subtype_from_c_complex(PyTypeObject *type, Py_complex cval)
|
|||
{
|
||||
PyObject *op;
|
||||
|
||||
op = PyType_GenericAlloc(type, 0);
|
||||
op = type->tp_alloc(type, 0);
|
||||
if (op != NULL)
|
||||
((PyComplexObject *)op)->cval = cval;
|
||||
return op;
|
||||
|
@ -1000,7 +1000,7 @@ PyTypeObject PyComplex_Type = {
|
|||
0, /* tp_descr_set */
|
||||
0, /* tp_dictoffset */
|
||||
0, /* tp_init */
|
||||
0, /* tp_alloc */
|
||||
PyType_GenericAlloc, /* tp_alloc */
|
||||
complex_new, /* tp_new */
|
||||
PyObject_Del, /* tp_free */
|
||||
};
|
||||
|
|
|
@ -110,6 +110,16 @@ above, and then shifting perturb can be done while the table index is being
|
|||
masked); and the dictobject struct required a member to hold the table's
|
||||
polynomial. In Tim's experiments the current scheme ran faster, produced
|
||||
equally good collision statistics, needed less code & used less memory.
|
||||
|
||||
Theoretical Python 2.5 headache: hash codes are only C "long", but
|
||||
sizeof(Py_ssize_t) > sizeof(long) may be possible. In that case, and if a
|
||||
dict is genuinely huge, then only the slots directly reachable via indexing
|
||||
by a C long can be the first slot in a probe sequence. The probe sequence
|
||||
will still eventually reach every slot in the table, but the collision rate
|
||||
on initial probes may be much higher than this scheme was designed for.
|
||||
Getting a hash code as fat as Py_ssize_t is the only real cure. But in
|
||||
practice, this probably won't make a lick of difference for many years (at
|
||||
which point everyone will have terabytes of RAM on 64-bit boxes).
|
||||
*/
|
||||
|
||||
/* Object used as dummy key to fill deleted entries */
|
||||
|
@ -217,49 +227,43 @@ All arithmetic on hash should ignore overflow.
|
|||
contributions by Reimer Behrends, Jyrki Alakuijala, Vladimir Marangozov and
|
||||
Christian Tismer).
|
||||
|
||||
This function must never return NULL; failures are indicated by returning
|
||||
a dictentry* for which the me_value field is NULL. Exceptions are never
|
||||
reported by this function, and outstanding exceptions are maintained.
|
||||
lookdict() is general-purpose, and may return NULL if (and only if) a
|
||||
comparison raises an exception (this was new in Python 2.5).
|
||||
lookdict_string() below is specialized to string keys, comparison of which can
|
||||
never raise an exception; that function can never return NULL. For both, when
|
||||
the key isn't found a dictentry* is returned for which the me_value field is
|
||||
NULL; this is the slot in the dict at which the key would have been found, and
|
||||
the caller can (if it wishes) add the <key, value> pair to the returned
|
||||
dictentry*.
|
||||
*/
|
||||
|
||||
static dictentry *
|
||||
lookdict(dictobject *mp, PyObject *key, register long hash)
|
||||
{
|
||||
register Py_ssize_t i;
|
||||
register size_t i;
|
||||
register size_t perturb;
|
||||
register dictentry *freeslot;
|
||||
register unsigned int mask = mp->ma_mask;
|
||||
register size_t mask = (size_t)mp->ma_mask;
|
||||
dictentry *ep0 = mp->ma_table;
|
||||
register dictentry *ep;
|
||||
register int restore_error;
|
||||
register int checked_error;
|
||||
register int cmp;
|
||||
PyObject *err_type, *err_value, *err_tb;
|
||||
PyObject *startkey;
|
||||
|
||||
i = hash & mask;
|
||||
i = (size_t)hash & mask;
|
||||
ep = &ep0[i];
|
||||
if (ep->me_key == NULL || ep->me_key == key)
|
||||
return ep;
|
||||
|
||||
restore_error = checked_error = 0;
|
||||
if (ep->me_key == dummy)
|
||||
freeslot = ep;
|
||||
else {
|
||||
if (ep->me_hash == hash) {
|
||||
/* error can't have been checked yet */
|
||||
checked_error = 1;
|
||||
if (PyErr_Occurred()) {
|
||||
restore_error = 1;
|
||||
PyErr_Fetch(&err_type, &err_value, &err_tb);
|
||||
}
|
||||
startkey = ep->me_key;
|
||||
cmp = PyObject_RichCompareBool(startkey, key, Py_EQ);
|
||||
if (cmp < 0)
|
||||
PyErr_Clear();
|
||||
return NULL;
|
||||
if (ep0 == mp->ma_table && ep->me_key == startkey) {
|
||||
if (cmp > 0)
|
||||
goto Done;
|
||||
return ep;
|
||||
}
|
||||
else {
|
||||
/* The compare did major nasty stuff to the
|
||||
|
@ -267,8 +271,7 @@ lookdict(dictobject *mp, PyObject *key, register long hash)
|
|||
* XXX A clever adversary could prevent this
|
||||
* XXX from terminating.
|
||||
*/
|
||||
ep = lookdict(mp, key, hash);
|
||||
goto Done;
|
||||
return lookdict(mp, key, hash);
|
||||
}
|
||||
}
|
||||
freeslot = NULL;
|
||||
|
@ -279,29 +282,18 @@ lookdict(dictobject *mp, PyObject *key, register long hash)
|
|||
for (perturb = hash; ; perturb >>= PERTURB_SHIFT) {
|
||||
i = (i << 2) + i + perturb + 1;
|
||||
ep = &ep0[i & mask];
|
||||
if (ep->me_key == NULL) {
|
||||
if (freeslot != NULL)
|
||||
ep = freeslot;
|
||||
break;
|
||||
}
|
||||
if (ep->me_key == NULL)
|
||||
return freeslot == NULL ? ep : freeslot;
|
||||
if (ep->me_key == key)
|
||||
break;
|
||||
return ep;
|
||||
if (ep->me_hash == hash && ep->me_key != dummy) {
|
||||
if (!checked_error) {
|
||||
checked_error = 1;
|
||||
if (PyErr_Occurred()) {
|
||||
restore_error = 1;
|
||||
PyErr_Fetch(&err_type, &err_value,
|
||||
&err_tb);
|
||||
}
|
||||
}
|
||||
startkey = ep->me_key;
|
||||
cmp = PyObject_RichCompareBool(startkey, key, Py_EQ);
|
||||
if (cmp < 0)
|
||||
PyErr_Clear();
|
||||
return NULL;
|
||||
if (ep0 == mp->ma_table && ep->me_key == startkey) {
|
||||
if (cmp > 0)
|
||||
break;
|
||||
return ep;
|
||||
}
|
||||
else {
|
||||
/* The compare did major nasty stuff to the
|
||||
|
@ -309,37 +301,30 @@ lookdict(dictobject *mp, PyObject *key, register long hash)
|
|||
* XXX A clever adversary could prevent this
|
||||
* XXX from terminating.
|
||||
*/
|
||||
ep = lookdict(mp, key, hash);
|
||||
break;
|
||||
return lookdict(mp, key, hash);
|
||||
}
|
||||
}
|
||||
else if (ep->me_key == dummy && freeslot == NULL)
|
||||
freeslot = ep;
|
||||
}
|
||||
|
||||
Done:
|
||||
if (restore_error)
|
||||
PyErr_Restore(err_type, err_value, err_tb);
|
||||
return ep;
|
||||
}
|
||||
|
||||
/*
|
||||
* Hacked up version of lookdict which can assume keys are always strings;
|
||||
* this assumption allows testing for errors during PyObject_Compare() to
|
||||
* be dropped; string-string comparisons never raise exceptions. This also
|
||||
* means we don't need to go through PyObject_Compare(); we can always use
|
||||
* _PyString_Eq directly.
|
||||
* this assumption allows testing for errors during PyObject_RichCompareBool()
|
||||
* to be dropped; string-string comparisons never raise exceptions. This also
|
||||
* means we don't need to go through PyObject_RichCompareBool(); we can always
|
||||
* use _PyString_Eq() directly.
|
||||
*
|
||||
* This is valuable because the general-case error handling in lookdict() is
|
||||
* expensive, and dicts with pure-string keys are very common.
|
||||
* This is valuable because dicts with only string keys are very common.
|
||||
*/
|
||||
static dictentry *
|
||||
lookdict_string(dictobject *mp, PyObject *key, register long hash)
|
||||
{
|
||||
register Py_ssize_t i;
|
||||
register size_t i;
|
||||
register size_t perturb;
|
||||
register dictentry *freeslot;
|
||||
register unsigned int mask = mp->ma_mask;
|
||||
register size_t mask = (size_t)mp->ma_mask;
|
||||
dictentry *ep0 = mp->ma_table;
|
||||
register dictentry *ep;
|
||||
|
||||
|
@ -361,10 +346,8 @@ lookdict_string(dictobject *mp, PyObject *key, register long hash)
|
|||
if (ep->me_key == dummy)
|
||||
freeslot = ep;
|
||||
else {
|
||||
if (ep->me_hash == hash
|
||||
&& _PyString_Eq(ep->me_key, key)) {
|
||||
if (ep->me_hash == hash && _PyString_Eq(ep->me_key, key))
|
||||
return ep;
|
||||
}
|
||||
freeslot = NULL;
|
||||
}
|
||||
|
||||
|
@ -389,8 +372,9 @@ lookdict_string(dictobject *mp, PyObject *key, register long hash)
|
|||
Internal routine to insert a new item into the table.
|
||||
Used both by the internal resize routine and by the public insert routine.
|
||||
Eats a reference to key and one to value.
|
||||
Returns -1 if an error occurred, or 0 on success.
|
||||
*/
|
||||
static void
|
||||
static int
|
||||
insertdict(register dictobject *mp, PyObject *key, long hash, PyObject *value)
|
||||
{
|
||||
PyObject *old_value;
|
||||
|
@ -399,6 +383,11 @@ insertdict(register dictobject *mp, PyObject *key, long hash, PyObject *value)
|
|||
|
||||
assert(mp->ma_lookup != NULL);
|
||||
ep = mp->ma_lookup(mp, key, hash);
|
||||
if (ep == NULL) {
|
||||
Py_DECREF(key);
|
||||
Py_DECREF(value);
|
||||
return -1;
|
||||
}
|
||||
if (ep->me_value != NULL) {
|
||||
old_value = ep->me_value;
|
||||
ep->me_value = value;
|
||||
|
@ -413,10 +402,43 @@ insertdict(register dictobject *mp, PyObject *key, long hash, PyObject *value)
|
|||
Py_DECREF(dummy);
|
||||
}
|
||||
ep->me_key = key;
|
||||
ep->me_hash = hash;
|
||||
ep->me_hash = (Py_ssize_t)hash;
|
||||
ep->me_value = value;
|
||||
mp->ma_used++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
Internal routine used by dictresize() to insert an item which is
|
||||
known to be absent from the dict. This routine also assumes that
|
||||
the dict contains no deleted entries. Besides the performance benefit,
|
||||
using insertdict() in dictresize() is dangerous (SF bug #1456209).
|
||||
Note that no refcounts are changed by this routine; if needed, the caller
|
||||
is responsible for incref'ing `key` and `value`.
|
||||
*/
|
||||
static void
|
||||
insertdict_clean(register dictobject *mp, PyObject *key, long hash,
|
||||
PyObject *value)
|
||||
{
|
||||
register size_t i;
|
||||
register size_t perturb;
|
||||
register size_t mask = (size_t)mp->ma_mask;
|
||||
dictentry *ep0 = mp->ma_table;
|
||||
register dictentry *ep;
|
||||
|
||||
i = hash & mask;
|
||||
ep = &ep0[i];
|
||||
for (perturb = hash; ep->me_key != NULL; perturb >>= PERTURB_SHIFT) {
|
||||
i = (i << 2) + i + perturb + 1;
|
||||
ep = &ep0[i & mask];
|
||||
}
|
||||
assert(ep->me_value == NULL);
|
||||
mp->ma_fill++;
|
||||
ep->me_key = key;
|
||||
ep->me_hash = (Py_ssize_t)hash;
|
||||
ep->me_value = value;
|
||||
mp->ma_used++;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -425,11 +447,11 @@ items again. When entries have been deleted, the new table may
|
|||
actually be smaller than the old one.
|
||||
*/
|
||||
static int
|
||||
dictresize(dictobject *mp, int minused)
|
||||
dictresize(dictobject *mp, Py_ssize_t minused)
|
||||
{
|
||||
int newsize;
|
||||
Py_ssize_t newsize;
|
||||
dictentry *oldtable, *newtable, *ep;
|
||||
int i;
|
||||
Py_ssize_t i;
|
||||
int is_oldtable_malloced;
|
||||
dictentry small_copy[PyDict_MINSIZE];
|
||||
|
||||
|
@ -491,7 +513,8 @@ dictresize(dictobject *mp, int minused)
|
|||
for (ep = oldtable; i > 0; ep++) {
|
||||
if (ep->me_value != NULL) { /* active entry */
|
||||
--i;
|
||||
insertdict(mp, ep->me_key, ep->me_hash, ep->me_value);
|
||||
insertdict_clean(mp, ep->me_key, (long)ep->me_hash,
|
||||
ep->me_value);
|
||||
}
|
||||
else if (ep->me_key != NULL) { /* dummy entry */
|
||||
--i;
|
||||
|
@ -506,14 +529,25 @@ dictresize(dictobject *mp, int minused)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Note that, for historical reasons, PyDict_GetItem() suppresses all errors
|
||||
* that may occur (originally dicts supported only string keys, and exceptions
|
||||
* weren't possible). So, while the original intent was that a NULL return
|
||||
* meant the key wasn't present, it reality it can mean that, or that an error
|
||||
* (suppressed) occurred while computing the key's hash, or that some error
|
||||
* (suppressed) occurred when comparing keys in the dict's internal probe
|
||||
* sequence. A nasty example of the latter is when a Python-coded comparison
|
||||
* function hits a stack-depth error, which can cause this to return NULL
|
||||
* even if the key is present.
|
||||
*/
|
||||
PyObject *
|
||||
PyDict_GetItem(PyObject *op, PyObject *key)
|
||||
{
|
||||
long hash;
|
||||
dictobject *mp = (dictobject *)op;
|
||||
if (!PyDict_Check(op)) {
|
||||
dictentry *ep;
|
||||
PyThreadState *tstate;
|
||||
if (!PyDict_Check(op))
|
||||
return NULL;
|
||||
}
|
||||
if (!PyString_CheckExact(key) ||
|
||||
(hash = ((PyStringObject *) key)->ob_shash) == -1)
|
||||
{
|
||||
|
@ -523,7 +557,29 @@ PyDict_GetItem(PyObject *op, PyObject *key)
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
return (mp->ma_lookup)(mp, key, hash)->me_value;
|
||||
|
||||
/* We can arrive here with a NULL tstate during initialization:
|
||||
try running "python -Wi" for an example related to string
|
||||
interning. Let's just hope that no exception occurs then... */
|
||||
tstate = PyThreadState_GET();
|
||||
if (tstate != NULL && tstate->curexc_type != NULL) {
|
||||
/* preserve the existing exception */
|
||||
PyObject *err_type, *err_value, *err_tb;
|
||||
PyErr_Fetch(&err_type, &err_value, &err_tb);
|
||||
ep = (mp->ma_lookup)(mp, key, hash);
|
||||
/* ignore errors */
|
||||
PyErr_Restore(err_type, err_value, err_tb);
|
||||
if (ep == NULL)
|
||||
return NULL;
|
||||
}
|
||||
else {
|
||||
ep = (mp->ma_lookup)(mp, key, hash);
|
||||
if (ep == NULL) {
|
||||
PyErr_Clear();
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
return ep->me_value;
|
||||
}
|
||||
|
||||
/* CAUTION: PyDict_SetItem() must guarantee that it won't resize the
|
||||
|
@ -537,7 +593,7 @@ PyDict_SetItem(register PyObject *op, PyObject *key, PyObject *value)
|
|||
{
|
||||
register dictobject *mp;
|
||||
register long hash;
|
||||
register int n_used;
|
||||
register Py_ssize_t n_used;
|
||||
|
||||
if (!PyDict_Check(op)) {
|
||||
PyErr_BadInternalCall();
|
||||
|
@ -558,7 +614,8 @@ PyDict_SetItem(register PyObject *op, PyObject *key, PyObject *value)
|
|||
n_used = mp->ma_used;
|
||||
Py_INCREF(value);
|
||||
Py_INCREF(key);
|
||||
insertdict(mp, key, hash, value);
|
||||
if (insertdict(mp, key, hash, value) != 0)
|
||||
return -1;
|
||||
/* If we added a key, we can safely resize. Otherwise just return!
|
||||
* If fill >= 2/3 size, adjust size. Normally, this doubles or
|
||||
* quaduples the size, but it's also possible for the dict to shrink
|
||||
|
@ -575,7 +632,7 @@ PyDict_SetItem(register PyObject *op, PyObject *key, PyObject *value)
|
|||
*/
|
||||
if (!(mp->ma_used > n_used && mp->ma_fill*3 >= (mp->ma_mask+1)*2))
|
||||
return 0;
|
||||
return dictresize(mp, (mp->ma_used>50000 ? mp->ma_used*2 : mp->ma_used*4));
|
||||
return dictresize(mp, (mp->ma_used > 50000 ? 2 : 4) * mp->ma_used);
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -598,6 +655,8 @@ PyDict_DelItem(PyObject *op, PyObject *key)
|
|||
}
|
||||
mp = (dictobject *)op;
|
||||
ep = (mp->ma_lookup)(mp, key, hash);
|
||||
if (ep == NULL)
|
||||
return -1;
|
||||
if (ep->me_value == NULL) {
|
||||
PyErr_SetObject(PyExc_KeyError, key);
|
||||
return -1;
|
||||
|
@ -619,10 +678,10 @@ PyDict_Clear(PyObject *op)
|
|||
dictobject *mp;
|
||||
dictentry *ep, *table;
|
||||
int table_is_malloced;
|
||||
int fill;
|
||||
Py_ssize_t fill;
|
||||
dictentry small_copy[PyDict_MINSIZE];
|
||||
#ifdef Py_DEBUG
|
||||
int i, n;
|
||||
Py_ssize_t i, n;
|
||||
#endif
|
||||
|
||||
if (!PyDict_Check(op))
|
||||
|
@ -685,7 +744,7 @@ PyDict_Clear(PyObject *op)
|
|||
/*
|
||||
* Iterate over a dict. Use like so:
|
||||
*
|
||||
* int i;
|
||||
* Py_ssize_t i;
|
||||
* PyObject *key, *value;
|
||||
* i = 0; # important! i should not otherwise be changed by you
|
||||
* while (PyDict_Next(yourdict, &i, &key, &value)) {
|
||||
|
@ -701,7 +760,7 @@ int
|
|||
PyDict_Next(PyObject *op, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue)
|
||||
{
|
||||
register Py_ssize_t i;
|
||||
register int mask;
|
||||
register Py_ssize_t mask;
|
||||
register dictentry *ep;
|
||||
|
||||
if (!PyDict_Check(op))
|
||||
|
@ -729,7 +788,7 @@ static void
|
|||
dict_dealloc(register dictobject *mp)
|
||||
{
|
||||
register dictentry *ep;
|
||||
int fill = mp->ma_fill;
|
||||
Py_ssize_t fill = mp->ma_fill;
|
||||
PyObject_GC_UnTrack(mp);
|
||||
Py_TRASHCAN_SAFE_BEGIN(mp)
|
||||
for (ep = mp->ma_table; fill > 0; ep++) {
|
||||
|
@ -751,13 +810,14 @@ dict_dealloc(register dictobject *mp)
|
|||
static int
|
||||
dict_print(register dictobject *mp, register FILE *fp, register int flags)
|
||||
{
|
||||
register int i;
|
||||
register int any;
|
||||
register Py_ssize_t i;
|
||||
register Py_ssize_t any;
|
||||
int status;
|
||||
|
||||
i = Py_ReprEnter((PyObject*)mp);
|
||||
if (i != 0) {
|
||||
if (i < 0)
|
||||
return i;
|
||||
status = Py_ReprEnter((PyObject*)mp);
|
||||
if (status != 0) {
|
||||
if (status < 0)
|
||||
return status;
|
||||
fprintf(fp, "{...}");
|
||||
return 0;
|
||||
}
|
||||
|
@ -882,6 +942,7 @@ dict_subscript(dictobject *mp, register PyObject *key)
|
|||
{
|
||||
PyObject *v;
|
||||
long hash;
|
||||
dictentry *ep;
|
||||
assert(mp->ma_table != NULL);
|
||||
if (!PyString_CheckExact(key) ||
|
||||
(hash = ((PyStringObject *) key)->ob_shash) == -1) {
|
||||
|
@ -889,14 +950,17 @@ dict_subscript(dictobject *mp, register PyObject *key)
|
|||
if (hash == -1)
|
||||
return NULL;
|
||||
}
|
||||
v = (mp->ma_lookup)(mp, key, hash) -> me_value;
|
||||
ep = (mp->ma_lookup)(mp, key, hash);
|
||||
if (ep == NULL)
|
||||
return NULL;
|
||||
v = ep->me_value;
|
||||
if (v == NULL) {
|
||||
if (!PyDict_CheckExact(mp)) {
|
||||
/* Look up __missing__ method if we're a subclass. */
|
||||
PyObject *missing;
|
||||
static PyObject *missing_str = NULL;
|
||||
if (missing_str == NULL)
|
||||
missing_str =
|
||||
missing_str =
|
||||
PyString_InternFromString("__missing__");
|
||||
missing = _PyType_Lookup(mp->ob_type, missing_str);
|
||||
if (missing != NULL)
|
||||
|
@ -930,9 +994,9 @@ static PyObject *
|
|||
dict_keys(register dictobject *mp)
|
||||
{
|
||||
register PyObject *v;
|
||||
register int i, j;
|
||||
register Py_ssize_t i, j;
|
||||
dictentry *ep;
|
||||
int mask, n;
|
||||
Py_ssize_t mask, n;
|
||||
|
||||
again:
|
||||
n = mp->ma_used;
|
||||
|
@ -964,9 +1028,9 @@ static PyObject *
|
|||
dict_values(register dictobject *mp)
|
||||
{
|
||||
register PyObject *v;
|
||||
register int i, j;
|
||||
register Py_ssize_t i, j;
|
||||
dictentry *ep;
|
||||
int mask, n;
|
||||
Py_ssize_t mask, n;
|
||||
|
||||
again:
|
||||
n = mp->ma_used;
|
||||
|
@ -998,8 +1062,8 @@ static PyObject *
|
|||
dict_items(register dictobject *mp)
|
||||
{
|
||||
register PyObject *v;
|
||||
register int i, j, n;
|
||||
int mask;
|
||||
register Py_ssize_t i, j, n;
|
||||
Py_ssize_t mask;
|
||||
PyObject *item, *key, *value;
|
||||
dictentry *ep;
|
||||
|
||||
|
@ -1132,7 +1196,7 @@ int
|
|||
PyDict_MergeFromSeq2(PyObject *d, PyObject *seq2, int override)
|
||||
{
|
||||
PyObject *it; /* iter(seq2) */
|
||||
int i; /* index into seq2 of current element */
|
||||
Py_ssize_t i; /* index into seq2 of current element */
|
||||
PyObject *item; /* seq2[i] */
|
||||
PyObject *fast; /* item as a 2-tuple or 2-list */
|
||||
|
||||
|
@ -1162,14 +1226,14 @@ PyDict_MergeFromSeq2(PyObject *d, PyObject *seq2, int override)
|
|||
if (PyErr_ExceptionMatches(PyExc_TypeError))
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"cannot convert dictionary update "
|
||||
"sequence element #%d to a sequence",
|
||||
"sequence element #%zd to a sequence",
|
||||
i);
|
||||
goto Fail;
|
||||
}
|
||||
n = PySequence_Fast_GET_SIZE(fast);
|
||||
if (n != 2) {
|
||||
PyErr_Format(PyExc_ValueError,
|
||||
"dictionary update sequence element #%d "
|
||||
"dictionary update sequence element #%zd "
|
||||
"has length %zd; 2 is required",
|
||||
i, n);
|
||||
goto Fail;
|
||||
|
@ -1195,7 +1259,7 @@ Fail:
|
|||
i = -1;
|
||||
Return:
|
||||
Py_DECREF(it);
|
||||
return i;
|
||||
return Py_SAFE_DOWNCAST(i, Py_ssize_t, int);
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -1208,7 +1272,7 @@ int
|
|||
PyDict_Merge(PyObject *a, PyObject *b, int override)
|
||||
{
|
||||
register PyDictObject *mp, *other;
|
||||
register int i;
|
||||
register Py_ssize_t i;
|
||||
dictentry *entry;
|
||||
|
||||
/* We accept for the argument either a concrete dictionary object,
|
||||
|
@ -1247,8 +1311,10 @@ PyDict_Merge(PyObject *a, PyObject *b, int override)
|
|||
PyDict_GetItem(a, entry->me_key) == NULL)) {
|
||||
Py_INCREF(entry->me_key);
|
||||
Py_INCREF(entry->me_value);
|
||||
insertdict(mp, entry->me_key, entry->me_hash,
|
||||
entry->me_value);
|
||||
if (insertdict(mp, entry->me_key,
|
||||
(long)entry->me_hash,
|
||||
entry->me_value) != 0)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1376,7 +1442,8 @@ characterize(dictobject *a, dictobject *b, PyObject **pval)
|
|||
{
|
||||
PyObject *akey = NULL; /* smallest key in a s.t. a[akey] != b[akey] */
|
||||
PyObject *aval = NULL; /* a[akey] */
|
||||
int i, cmp;
|
||||
Py_ssize_t i;
|
||||
int cmp;
|
||||
|
||||
for (i = 0; i <= a->ma_mask; i++) {
|
||||
PyObject *thiskey, *thisaval, *thisbval;
|
||||
|
@ -1499,7 +1566,7 @@ Finished:
|
|||
static int
|
||||
dict_equal(dictobject *a, dictobject *b)
|
||||
{
|
||||
int i;
|
||||
Py_ssize_t i;
|
||||
|
||||
if (a->ma_used != b->ma_used)
|
||||
/* can't be equal if # of entries differ */
|
||||
|
@ -1554,15 +1621,18 @@ static PyObject *
|
|||
dict_has_key(register dictobject *mp, PyObject *key)
|
||||
{
|
||||
long hash;
|
||||
register long ok;
|
||||
dictentry *ep;
|
||||
|
||||
if (!PyString_CheckExact(key) ||
|
||||
(hash = ((PyStringObject *) key)->ob_shash) == -1) {
|
||||
hash = PyObject_Hash(key);
|
||||
if (hash == -1)
|
||||
return NULL;
|
||||
}
|
||||
ok = (mp->ma_lookup)(mp, key, hash)->me_value != NULL;
|
||||
return PyBool_FromLong(ok);
|
||||
ep = (mp->ma_lookup)(mp, key, hash);
|
||||
if (ep == NULL)
|
||||
return NULL;
|
||||
return PyBool_FromLong(ep->me_value != NULL);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
@ -1572,6 +1642,7 @@ dict_get(register dictobject *mp, PyObject *args)
|
|||
PyObject *failobj = Py_None;
|
||||
PyObject *val = NULL;
|
||||
long hash;
|
||||
dictentry *ep;
|
||||
|
||||
if (!PyArg_UnpackTuple(args, "get", 1, 2, &key, &failobj))
|
||||
return NULL;
|
||||
|
@ -1582,8 +1653,10 @@ dict_get(register dictobject *mp, PyObject *args)
|
|||
if (hash == -1)
|
||||
return NULL;
|
||||
}
|
||||
val = (mp->ma_lookup)(mp, key, hash)->me_value;
|
||||
|
||||
ep = (mp->ma_lookup)(mp, key, hash);
|
||||
if (ep == NULL)
|
||||
return NULL;
|
||||
val = ep->me_value;
|
||||
if (val == NULL)
|
||||
val = failobj;
|
||||
Py_INCREF(val);
|
||||
|
@ -1598,6 +1671,7 @@ dict_setdefault(register dictobject *mp, PyObject *args)
|
|||
PyObject *failobj = Py_None;
|
||||
PyObject *val = NULL;
|
||||
long hash;
|
||||
dictentry *ep;
|
||||
|
||||
if (!PyArg_UnpackTuple(args, "setdefault", 1, 2, &key, &failobj))
|
||||
return NULL;
|
||||
|
@ -1608,7 +1682,10 @@ dict_setdefault(register dictobject *mp, PyObject *args)
|
|||
if (hash == -1)
|
||||
return NULL;
|
||||
}
|
||||
val = (mp->ma_lookup)(mp, key, hash)->me_value;
|
||||
ep = (mp->ma_lookup)(mp, key, hash);
|
||||
if (ep == NULL)
|
||||
return NULL;
|
||||
val = ep->me_value;
|
||||
if (val == NULL) {
|
||||
val = failobj;
|
||||
if (PyDict_SetItem((PyObject*)mp, key, failobj))
|
||||
|
@ -1652,6 +1729,8 @@ dict_pop(dictobject *mp, PyObject *args)
|
|||
return NULL;
|
||||
}
|
||||
ep = (mp->ma_lookup)(mp, key, hash);
|
||||
if (ep == NULL)
|
||||
return NULL;
|
||||
if (ep->me_value == NULL) {
|
||||
if (deflt) {
|
||||
Py_INCREF(deflt);
|
||||
|
@ -1673,7 +1752,7 @@ dict_pop(dictobject *mp, PyObject *args)
|
|||
static PyObject *
|
||||
dict_popitem(dictobject *mp)
|
||||
{
|
||||
int i = 0;
|
||||
Py_ssize_t i = 0;
|
||||
dictentry *ep;
|
||||
PyObject *res;
|
||||
|
||||
|
@ -1683,7 +1762,7 @@ dict_popitem(dictobject *mp)
|
|||
* happened, the result would be an infinite loop (searching for an
|
||||
* entry that no longer exists). Note that the usual popitem()
|
||||
* idiom is "while d: k, v = d.popitem()". so needing to throw the
|
||||
* tuple away if the dict *is* empty isn't a significant
|
||||
* tuple away if the dict *is* empty isn't a significant
|
||||
* inefficiency -- possible, but unlikely in practice.
|
||||
*/
|
||||
res = PyTuple_New(2);
|
||||
|
@ -1703,7 +1782,7 @@ dict_popitem(dictobject *mp)
|
|||
*/
|
||||
ep = &mp->ma_table[0];
|
||||
if (ep->me_value == NULL) {
|
||||
i = (int)ep->me_hash;
|
||||
i = ep->me_hash;
|
||||
/* The hash field may be a real hash value, or it may be a
|
||||
* legit search finger, or it may be a once-legit search
|
||||
* finger that's out of bounds now because it wrapped around
|
||||
|
@ -1866,11 +1945,13 @@ static PyMethodDef mapp_methods[] = {
|
|||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
/* Return 1 if `key` is in dict `op`, 0 if not, and -1 on error. */
|
||||
int
|
||||
PyDict_Contains(PyObject *op, PyObject *key)
|
||||
{
|
||||
long hash;
|
||||
dictobject *mp = (dictobject *)op;
|
||||
dictentry *ep;
|
||||
|
||||
if (!PyString_CheckExact(key) ||
|
||||
(hash = ((PyStringObject *) key)->ob_shash) == -1) {
|
||||
|
@ -1878,7 +1959,8 @@ PyDict_Contains(PyObject *op, PyObject *key)
|
|||
if (hash == -1)
|
||||
return -1;
|
||||
}
|
||||
return (mp->ma_lookup)(mp, key, hash)->me_value != NULL;
|
||||
ep = (mp->ma_lookup)(mp, key, hash);
|
||||
return ep == NULL ? -1 : (ep->me_value != NULL);
|
||||
}
|
||||
|
||||
/* Hack to implement "key in dict" */
|
||||
|
@ -2035,10 +2117,10 @@ PyDict_DelItemString(PyObject *v, const char *key)
|
|||
typedef struct {
|
||||
PyObject_HEAD
|
||||
dictobject *di_dict; /* Set to NULL when iterator is exhausted */
|
||||
int di_used;
|
||||
int di_pos;
|
||||
Py_ssize_t di_used;
|
||||
Py_ssize_t di_pos;
|
||||
PyObject* di_result; /* reusable result tuple for iteritems */
|
||||
long len;
|
||||
Py_ssize_t len;
|
||||
} dictiterobject;
|
||||
|
||||
static PyObject *
|
||||
|
@ -2076,10 +2158,10 @@ dictiter_dealloc(dictiterobject *di)
|
|||
static PyObject *
|
||||
dictiter_len(dictiterobject *di)
|
||||
{
|
||||
long len = 0;
|
||||
Py_ssize_t len = 0;
|
||||
if (di->di_dict != NULL && di->di_used == di->di_dict->ma_used)
|
||||
len = di->len;
|
||||
return PyInt_FromLong(len);
|
||||
return PyInt_FromSize_t(len);
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(length_hint_doc, "Private method returning an estimate of len(list(it)).");
|
||||
|
@ -2092,7 +2174,7 @@ static PyMethodDef dictiter_methods[] = {
|
|||
static PyObject *dictiter_iternextkey(dictiterobject *di)
|
||||
{
|
||||
PyObject *key;
|
||||
register int i, mask;
|
||||
register Py_ssize_t i, mask;
|
||||
register dictentry *ep;
|
||||
dictobject *d = di->di_dict;
|
||||
|
||||
|
@ -2165,7 +2247,7 @@ PyTypeObject PyDictIterKey_Type = {
|
|||
static PyObject *dictiter_iternextvalue(dictiterobject *di)
|
||||
{
|
||||
PyObject *value;
|
||||
register int i, mask;
|
||||
register Py_ssize_t i, mask;
|
||||
register dictentry *ep;
|
||||
dictobject *d = di->di_dict;
|
||||
|
||||
|
@ -2238,7 +2320,7 @@ PyTypeObject PyDictIterValue_Type = {
|
|||
static PyObject *dictiter_iternextitem(dictiterobject *di)
|
||||
{
|
||||
PyObject *key, *value, *result = di->di_result;
|
||||
register int i, mask;
|
||||
register Py_ssize_t i, mask;
|
||||
register dictentry *ep;
|
||||
dictobject *d = di->di_dict;
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -216,7 +216,7 @@ gen_throw(PyGenObject *gen, PyObject *args)
|
|||
PyObject *tb = NULL;
|
||||
PyObject *val = NULL;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "O|OO:throw", &typ, &val, &tb))
|
||||
if (!PyArg_UnpackTuple(args, "throw", 1, 3, &typ, &val, &tb))
|
||||
return NULL;
|
||||
|
||||
/* First, check the traceback argument, replacing None with
|
||||
|
|
|
@ -1509,6 +1509,57 @@ convmultmax_base[base], the result is "simply"
|
|||
(((c0*B + c1)*B + c2)*B + c3)*B + ... ))) + c_n-1
|
||||
|
||||
where B = convmultmax_base[base].
|
||||
|
||||
Error analysis: as above, the number of Python digits `n` needed is worst-
|
||||
case
|
||||
|
||||
n >= N * log(B)/log(BASE)
|
||||
|
||||
where `N` is the number of input digits in base `B`. This is computed via
|
||||
|
||||
size_z = (Py_ssize_t)((scan - str) * log_base_BASE[base]) + 1;
|
||||
|
||||
below. Two numeric concerns are how much space this can waste, and whether
|
||||
the computed result can be too small. To be concrete, assume BASE = 2**15,
|
||||
which is the default (and it's unlikely anyone changes that).
|
||||
|
||||
Waste isn't a problem: provided the first input digit isn't 0, the difference
|
||||
between the worst-case input with N digits and the smallest input with N
|
||||
digits is about a factor of B, but B is small compared to BASE so at most
|
||||
one allocated Python digit can remain unused on that count. If
|
||||
N*log(B)/log(BASE) is mathematically an exact integer, then truncating that
|
||||
and adding 1 returns a result 1 larger than necessary. However, that can't
|
||||
happen: whenever B is a power of 2, long_from_binary_base() is called
|
||||
instead, and it's impossible for B**i to be an integer power of 2**15 when
|
||||
B is not a power of 2 (i.e., it's impossible for N*log(B)/log(BASE) to be
|
||||
an exact integer when B is not a power of 2, since B**i has a prime factor
|
||||
other than 2 in that case, but (2**15)**j's only prime factor is 2).
|
||||
|
||||
The computed result can be too small if the true value of N*log(B)/log(BASE)
|
||||
is a little bit larger than an exact integer, but due to roundoff errors (in
|
||||
computing log(B), log(BASE), their quotient, and/or multiplying that by N)
|
||||
yields a numeric result a little less than that integer. Unfortunately, "how
|
||||
close can a transcendental function get to an integer over some range?"
|
||||
questions are generally theoretically intractable. Computer analysis via
|
||||
continued fractions is practical: expand log(B)/log(BASE) via continued
|
||||
fractions, giving a sequence i/j of "the best" rational approximations. Then
|
||||
j*log(B)/log(BASE) is approximately equal to (the integer) i. This shows that
|
||||
we can get very close to being in trouble, but very rarely. For example,
|
||||
76573 is a denominator in one of the continued-fraction approximations to
|
||||
log(10)/log(2**15), and indeed:
|
||||
|
||||
>>> log(10)/log(2**15)*76573
|
||||
16958.000000654003
|
||||
|
||||
is very close to an integer. If we were working with IEEE single-precision,
|
||||
rounding errors could kill us. Finding worst cases in IEEE double-precision
|
||||
requires better-than-double-precision log() functions, and Tim didn't bother.
|
||||
Instead the code checks to see whether the allocated space is enough as each
|
||||
new Python digit is added, and copies the whole thing to a larger long if not.
|
||||
This should happen extremely rarely, and in fact I don't have a test case
|
||||
that triggers it(!). Instead the code was tested by artificially allocating
|
||||
just 1 digit at the start, so that the copying code was exercised for every
|
||||
digit beyond the first.
|
||||
***/
|
||||
register twodigits c; /* current input character */
|
||||
Py_ssize_t size_z;
|
||||
|
@ -1551,6 +1602,8 @@ where B = convmultmax_base[base].
|
|||
* being stored into.
|
||||
*/
|
||||
size_z = (Py_ssize_t)((scan - str) * log_base_BASE[base]) + 1;
|
||||
/* Uncomment next line to test exceedingly rare copy code */
|
||||
/* size_z = 1; */
|
||||
assert(size_z > 0);
|
||||
z = _PyLong_New(size_z);
|
||||
if (z == NULL)
|
||||
|
@ -1594,9 +1647,27 @@ where B = convmultmax_base[base].
|
|||
/* carry off the current end? */
|
||||
if (c) {
|
||||
assert(c < BASE);
|
||||
assert(z->ob_size < size_z);
|
||||
*pz = (digit)c;
|
||||
++z->ob_size;
|
||||
if (z->ob_size < size_z) {
|
||||
*pz = (digit)c;
|
||||
++z->ob_size;
|
||||
}
|
||||
else {
|
||||
PyLongObject *tmp;
|
||||
/* Extremely rare. Get more space. */
|
||||
assert(z->ob_size == size_z);
|
||||
tmp = _PyLong_New(size_z + 1);
|
||||
if (tmp == NULL) {
|
||||
Py_DECREF(z);
|
||||
return NULL;
|
||||
}
|
||||
memcpy(tmp->ob_digit,
|
||||
z->ob_digit,
|
||||
sizeof(digit) * size_z);
|
||||
Py_DECREF(z);
|
||||
z = tmp;
|
||||
z->ob_digit[size_z] = (digit)c;
|
||||
++size_z;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ get_counts(void)
|
|||
if (result == NULL)
|
||||
return NULL;
|
||||
for (tp = type_list; tp; tp = tp->tp_next) {
|
||||
v = Py_BuildValue("(siii)", tp->tp_name, tp->tp_allocs,
|
||||
v = Py_BuildValue("(snnn)", tp->tp_name, tp->tp_allocs,
|
||||
tp->tp_frees, tp->tp_maxalloc);
|
||||
if (v == NULL) {
|
||||
Py_DECREF(result);
|
||||
|
|
|
@ -13,8 +13,11 @@ stringlib_count(const STRINGLIB_CHAR* str, Py_ssize_t str_len,
|
|||
{
|
||||
Py_ssize_t count;
|
||||
|
||||
if (sub_len == 0)
|
||||
if (sub_len == 0) {
|
||||
if (str_len < 0)
|
||||
return 0; /* start > len(str) */
|
||||
return str_len + 1;
|
||||
}
|
||||
|
||||
count = fastsearch(str, str_len, sub, sub_len, FAST_COUNT);
|
||||
|
||||
|
|
|
@ -14,8 +14,11 @@ stringlib_find(const STRINGLIB_CHAR* str, Py_ssize_t str_len,
|
|||
{
|
||||
Py_ssize_t pos;
|
||||
|
||||
if (sub_len == 0)
|
||||
if (sub_len == 0) {
|
||||
if (str_len < 0)
|
||||
return -1;
|
||||
return offset;
|
||||
}
|
||||
|
||||
pos = fastsearch(str, str_len, sub, sub_len, FAST_SEARCH);
|
||||
|
||||
|
@ -30,22 +33,20 @@ stringlib_rfind(const STRINGLIB_CHAR* str, Py_ssize_t str_len,
|
|||
const STRINGLIB_CHAR* sub, Py_ssize_t sub_len,
|
||||
Py_ssize_t offset)
|
||||
{
|
||||
Py_ssize_t pos;
|
||||
|
||||
/* XXX - create reversefastsearch helper! */
|
||||
if (sub_len == 0)
|
||||
pos = str_len + offset;
|
||||
else {
|
||||
Py_ssize_t j;
|
||||
pos = -1;
|
||||
if (sub_len == 0) {
|
||||
if (str_len < 0)
|
||||
return -1;
|
||||
return str_len + offset;
|
||||
} else {
|
||||
Py_ssize_t j, pos = -1;
|
||||
for (j = str_len - sub_len; j >= 0; --j)
|
||||
if (STRINGLIB_CMP(str+j, sub, sub_len) == 0) {
|
||||
pos = j + offset;
|
||||
break;
|
||||
}
|
||||
return pos;
|
||||
}
|
||||
|
||||
return pos;
|
||||
}
|
||||
|
||||
Py_LOCAL_INLINE(Py_ssize_t)
|
||||
|
|
|
@ -23,7 +23,6 @@ static PyStringObject *nullstring;
|
|||
*/
|
||||
static PyObject *interned;
|
||||
|
||||
|
||||
/*
|
||||
For both PyString_FromString() and PyString_FromStringAndSize(), the
|
||||
parameter `size' denotes number of characters to allocate, not counting any
|
||||
|
@ -80,7 +79,7 @@ PyString_FromStringAndSize(const char *str, Py_ssize_t size)
|
|||
op->ob_shash = -1;
|
||||
op->ob_sstate = SSTATE_NOT_INTERNED;
|
||||
if (str != NULL)
|
||||
memcpy(op->ob_sval, str, size);
|
||||
Py_MEMCPY(op->ob_sval, str, size);
|
||||
op->ob_sval[size] = '\0';
|
||||
/* share short strings */
|
||||
if (size == 0) {
|
||||
|
@ -134,7 +133,7 @@ PyString_FromString(const char *str)
|
|||
PyObject_INIT_VAR(op, &PyString_Type, size);
|
||||
op->ob_shash = -1;
|
||||
op->ob_sstate = SSTATE_NOT_INTERNED;
|
||||
memcpy(op->ob_sval, str, size+1);
|
||||
Py_MEMCPY(op->ob_sval, str, size+1);
|
||||
/* share short strings */
|
||||
if (size == 0) {
|
||||
PyObject *t = (PyObject *)op;
|
||||
|
@ -162,7 +161,7 @@ PyString_FromFormatV(const char *format, va_list vargs)
|
|||
PyObject* string;
|
||||
|
||||
#ifdef VA_LIST_IS_ARRAY
|
||||
memcpy(count, vargs, sizeof(va_list));
|
||||
Py_MEMCPY(count, vargs, sizeof(va_list));
|
||||
#else
|
||||
#ifdef __va_copy
|
||||
__va_copy(count, vargs);
|
||||
|
@ -304,7 +303,7 @@ PyString_FromFormatV(const char *format, va_list vargs)
|
|||
i = strlen(p);
|
||||
if (n > 0 && i > n)
|
||||
i = n;
|
||||
memcpy(s, p, i);
|
||||
Py_MEMCPY(s, p, i);
|
||||
s += i;
|
||||
break;
|
||||
case 'p':
|
||||
|
@ -583,7 +582,7 @@ PyObject *PyString_DecodeEscape(const char *s,
|
|||
assert(PyString_Check(w));
|
||||
r = PyString_AS_STRING(w);
|
||||
rn = PyString_GET_SIZE(w);
|
||||
memcpy(p, r, rn);
|
||||
Py_MEMCPY(p, r, rn);
|
||||
p += rn;
|
||||
Py_DECREF(w);
|
||||
s = t;
|
||||
|
@ -967,8 +966,8 @@ string_concat(register PyStringObject *a, register PyObject *bb)
|
|||
PyObject_INIT_VAR(op, &PyString_Type, size);
|
||||
op->ob_shash = -1;
|
||||
op->ob_sstate = SSTATE_NOT_INTERNED;
|
||||
memcpy(op->ob_sval, a->ob_sval, a->ob_size);
|
||||
memcpy(op->ob_sval + a->ob_size, b->ob_sval, b->ob_size);
|
||||
Py_MEMCPY(op->ob_sval, a->ob_sval, a->ob_size);
|
||||
Py_MEMCPY(op->ob_sval + a->ob_size, b->ob_sval, b->ob_size);
|
||||
op->ob_sval[size] = '\0';
|
||||
return (PyObject *) op;
|
||||
#undef b
|
||||
|
@ -1017,12 +1016,12 @@ string_repeat(register PyStringObject *a, register Py_ssize_t n)
|
|||
}
|
||||
i = 0;
|
||||
if (i < size) {
|
||||
memcpy(op->ob_sval, a->ob_sval, a->ob_size);
|
||||
Py_MEMCPY(op->ob_sval, a->ob_sval, a->ob_size);
|
||||
i = a->ob_size;
|
||||
}
|
||||
while (i < size) {
|
||||
j = (i <= size-i) ? i : size-i;
|
||||
memcpy(op->ob_sval+i, op->ob_sval, j);
|
||||
Py_MEMCPY(op->ob_sval+i, op->ob_sval, j);
|
||||
i += j;
|
||||
}
|
||||
return (PyObject *) op;
|
||||
|
@ -1364,7 +1363,7 @@ static const char *stripformat[] = {"|O:lstrip", "|O:rstrip", "|O:strip"};
|
|||
count++; }
|
||||
|
||||
/* Always force the list to the expected size. */
|
||||
#define FIX_PREALLOC_SIZE(list) ((PyListObject *)list)->ob_size = count;
|
||||
#define FIX_PREALLOC_SIZE(list) ((PyListObject *)list)->ob_size = count
|
||||
|
||||
#define SKIP_SPACE(s, i, len) { while (i<len && isspace(Py_CHARMASK(s[i]))) i++; }
|
||||
#define SKIP_NONSPACE(s, i, len) { while (i<len && !isspace(Py_CHARMASK(s[i]))) i++; }
|
||||
|
@ -1808,10 +1807,10 @@ string_join(PyStringObject *self, PyObject *orig)
|
|||
size_t n;
|
||||
item = PySequence_Fast_GET_ITEM(seq, i);
|
||||
n = PyString_GET_SIZE(item);
|
||||
memcpy(p, PyString_AS_STRING(item), n);
|
||||
Py_MEMCPY(p, PyString_AS_STRING(item), n);
|
||||
p += n;
|
||||
if (i < seqlen - 1) {
|
||||
memcpy(p, sep, seplen);
|
||||
Py_MEMCPY(p, sep, seplen);
|
||||
p += seplen;
|
||||
}
|
||||
}
|
||||
|
@ -1851,7 +1850,6 @@ string_find_internal(PyStringObject *self, PyObject *args, int dir)
|
|||
Py_ssize_t sub_len;
|
||||
Py_ssize_t start=0, end=PY_SSIZE_T_MAX;
|
||||
|
||||
/* XXX ssize_t i */
|
||||
if (!PyArg_ParseTuple(args, "O|O&O&:find/rfind/index/rindex", &subobj,
|
||||
_PyEval_SliceIndex, &start, _PyEval_SliceIndex, &end))
|
||||
return -2;
|
||||
|
@ -1865,6 +1863,8 @@ string_find_internal(PyStringObject *self, PyObject *args, int dir)
|
|||
(PyObject *)self, subobj, start, end, dir);
|
||||
#endif
|
||||
else if (PyObject_AsCharBuffer(subobj, &sub, &sub_len))
|
||||
/* XXX - the "expected a character buffer object" is pretty
|
||||
confusing for a non-expert. remap to something else ? */
|
||||
return -2;
|
||||
|
||||
if (dir > 0)
|
||||
|
@ -2131,7 +2131,7 @@ string_lower(PyStringObject *self)
|
|||
|
||||
s = PyString_AS_STRING(newobj);
|
||||
|
||||
memcpy(s, PyString_AS_STRING(self), n);
|
||||
Py_MEMCPY(s, PyString_AS_STRING(self), n);
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
int c = Py_CHARMASK(s[i]);
|
||||
|
@ -2164,7 +2164,7 @@ string_upper(PyStringObject *self)
|
|||
|
||||
s = PyString_AS_STRING(newobj);
|
||||
|
||||
memcpy(s, PyString_AS_STRING(self), n);
|
||||
Py_MEMCPY(s, PyString_AS_STRING(self), n);
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
int c = Py_CHARMASK(s[i]);
|
||||
|
@ -2615,18 +2615,18 @@ replace_interleave(PyStringObject *self,
|
|||
/* TODO: special case single character, which doesn't need memcpy */
|
||||
|
||||
/* Lay the first one down (guaranteed this will occur) */
|
||||
memcpy(result_s, to_s, to_len);
|
||||
Py_MEMCPY(result_s, to_s, to_len);
|
||||
result_s += to_len;
|
||||
count -= 1;
|
||||
|
||||
for (i=0; i<count; i++) {
|
||||
*result_s++ = *self_s++;
|
||||
memcpy(result_s, to_s, to_len);
|
||||
Py_MEMCPY(result_s, to_s, to_len);
|
||||
result_s += to_len;
|
||||
}
|
||||
|
||||
/* Copy the rest of the original string */
|
||||
memcpy(result_s, self_s, self_len-i);
|
||||
Py_MEMCPY(result_s, self_s, self_len-i);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -2665,11 +2665,11 @@ replace_delete_single_character(PyStringObject *self,
|
|||
next = findchar(start, end-start, from_c);
|
||||
if (next == NULL)
|
||||
break;
|
||||
memcpy(result_s, start, next-start);
|
||||
Py_MEMCPY(result_s, start, next-start);
|
||||
result_s += (next-start);
|
||||
start = next+1;
|
||||
}
|
||||
memcpy(result_s, start, end-start);
|
||||
Py_MEMCPY(result_s, start, end-start);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -2719,12 +2719,12 @@ replace_delete_substring(PyStringObject *self, PyStringObject *from,
|
|||
break;
|
||||
next = start + offset;
|
||||
|
||||
memcpy(result_s, start, next-start);
|
||||
Py_MEMCPY(result_s, start, next-start);
|
||||
|
||||
result_s += (next-start);
|
||||
start = next+from_len;
|
||||
}
|
||||
memcpy(result_s, start, end-start);
|
||||
Py_MEMCPY(result_s, start, end-start);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -2754,7 +2754,7 @@ replace_single_character_in_place(PyStringObject *self,
|
|||
if (result == NULL)
|
||||
return NULL;
|
||||
result_s = PyString_AS_STRING(result);
|
||||
memcpy(result_s, self_s, self_len);
|
||||
Py_MEMCPY(result_s, self_s, self_len);
|
||||
|
||||
/* change everything in-place, starting with this one */
|
||||
start = result_s + (next-self_s);
|
||||
|
@ -2808,12 +2808,12 @@ replace_substring_in_place(PyStringObject *self,
|
|||
if (result == NULL)
|
||||
return NULL;
|
||||
result_s = PyString_AS_STRING(result);
|
||||
memcpy(result_s, self_s, self_len);
|
||||
Py_MEMCPY(result_s, self_s, self_len);
|
||||
|
||||
|
||||
/* change everything in-place, starting with this one */
|
||||
start = result_s + offset;
|
||||
memcpy(start, to_s, from_len);
|
||||
Py_MEMCPY(start, to_s, from_len);
|
||||
start += from_len;
|
||||
end = result_s + self_len;
|
||||
|
||||
|
@ -2823,7 +2823,7 @@ replace_substring_in_place(PyStringObject *self,
|
|||
0, end-start, FORWARD);
|
||||
if (offset==-1)
|
||||
break;
|
||||
memcpy(start+offset, to_s, from_len);
|
||||
Py_MEMCPY(start+offset, to_s, from_len);
|
||||
start += offset+from_len;
|
||||
}
|
||||
|
||||
|
@ -2883,20 +2883,20 @@ replace_single_character(PyStringObject *self,
|
|||
|
||||
if (next == start) {
|
||||
/* replace with the 'to' */
|
||||
memcpy(result_s, to_s, to_len);
|
||||
Py_MEMCPY(result_s, to_s, to_len);
|
||||
result_s += to_len;
|
||||
start += 1;
|
||||
} else {
|
||||
/* copy the unchanged old then the 'to' */
|
||||
memcpy(result_s, start, next-start);
|
||||
Py_MEMCPY(result_s, start, next-start);
|
||||
result_s += (next-start);
|
||||
memcpy(result_s, to_s, to_len);
|
||||
Py_MEMCPY(result_s, to_s, to_len);
|
||||
result_s += to_len;
|
||||
start = next+1;
|
||||
}
|
||||
}
|
||||
/* Copy the remainder of the remaining string */
|
||||
memcpy(result_s, start, end-start);
|
||||
Py_MEMCPY(result_s, start, end-start);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -2958,20 +2958,20 @@ replace_substring(PyStringObject *self,
|
|||
next = start+offset;
|
||||
if (next == start) {
|
||||
/* replace with the 'to' */
|
||||
memcpy(result_s, to_s, to_len);
|
||||
Py_MEMCPY(result_s, to_s, to_len);
|
||||
result_s += to_len;
|
||||
start += from_len;
|
||||
} else {
|
||||
/* copy the unchanged old then the 'to' */
|
||||
memcpy(result_s, start, next-start);
|
||||
Py_MEMCPY(result_s, start, next-start);
|
||||
result_s += (next-start);
|
||||
memcpy(result_s, to_s, to_len);
|
||||
Py_MEMCPY(result_s, to_s, to_len);
|
||||
result_s += to_len;
|
||||
start = next+from_len;
|
||||
}
|
||||
}
|
||||
/* Copy the remainder of the remaining string */
|
||||
memcpy(result_s, start, end-start);
|
||||
Py_MEMCPY(result_s, start, end-start);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -3358,7 +3358,7 @@ pad(PyStringObject *self, Py_ssize_t left, Py_ssize_t right, char fill)
|
|||
if (u) {
|
||||
if (left)
|
||||
memset(PyString_AS_STRING(u), fill, left);
|
||||
memcpy(PyString_AS_STRING(u) + left,
|
||||
Py_MEMCPY(PyString_AS_STRING(u) + left,
|
||||
PyString_AS_STRING(self),
|
||||
PyString_GET_SIZE(self));
|
||||
if (right)
|
||||
|
@ -3896,7 +3896,7 @@ str_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||
n = PyString_GET_SIZE(tmp);
|
||||
pnew = type->tp_alloc(type, n);
|
||||
if (pnew != NULL) {
|
||||
memcpy(PyString_AS_STRING(pnew), PyString_AS_STRING(tmp), n+1);
|
||||
Py_MEMCPY(PyString_AS_STRING(pnew), PyString_AS_STRING(tmp), n+1);
|
||||
((PyStringObject *)pnew)->ob_shash =
|
||||
((PyStringObject *)tmp)->ob_shash;
|
||||
((PyStringObject *)pnew)->ob_sstate = SSTATE_NOT_INTERNED;
|
||||
|
@ -4791,7 +4791,7 @@ PyString_Format(PyObject *format, PyObject *args)
|
|||
*res++ = *pbuf++;
|
||||
}
|
||||
}
|
||||
memcpy(res, pbuf, len);
|
||||
Py_MEMCPY(res, pbuf, len);
|
||||
res += len;
|
||||
rescnt -= len;
|
||||
while (--width >= len) {
|
||||
|
|
|
@ -313,7 +313,7 @@ SOURCE=..\..\Objects\funcobject.c
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\Modules\functionalmodule.c
|
||||
SOURCE=..\..\Modules\_functoolsmodule.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
|
|
|
@ -108,8 +108,8 @@ sp_handle_dealloc(sp_handle_object* self)
|
|||
}
|
||||
|
||||
static PyMethodDef sp_handle_methods[] = {
|
||||
{"Detach", (PyCFunction) sp_handle_detach, 1},
|
||||
{"Close", (PyCFunction) sp_handle_close, 1},
|
||||
{"Detach", (PyCFunction) sp_handle_detach, METH_VARARGS},
|
||||
{"Close", (PyCFunction) sp_handle_close, METH_VARARGS},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ extern void initparser(void);
|
|||
extern void init_winreg(void);
|
||||
extern void init_struct(void);
|
||||
extern void initdatetime(void);
|
||||
extern void initfunctional(void);
|
||||
extern void init_functools(void);
|
||||
extern void initzlib(void);
|
||||
|
||||
extern void init_multibytecodec(void);
|
||||
|
@ -132,7 +132,7 @@ struct _inittab _PyImport_Inittab[] = {
|
|||
{"_winreg", init_winreg},
|
||||
{"_struct", init_struct},
|
||||
{"datetime", initdatetime},
|
||||
{"functional", initfunctional},
|
||||
{"_functools", init_functools},
|
||||
|
||||
{"xxsubtype", initxxsubtype},
|
||||
{"zipimport", initzipimport},
|
||||
|
|
|
@ -9,7 +9,7 @@ ex_foo(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyMethodDef example_methods[] = {
|
||||
{"foo", ex_foo, 1, "foo() doc string"},
|
||||
{"foo", ex_foo, METH_VARARGS, "foo() doc string"},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -0,0 +1,609 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg version="1.0" width="744.09448" height="1052.3622" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<linearGradient id="pyYellowGradient">
|
||||
<stop offset="0" style="stop-color:#ffc130;stop-opacity:1"/>
|
||||
<stop offset="1" style="stop-color:#ffea5b;stop-opacity:1"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="pyBlueGradient">
|
||||
<stop style="stop-color:#426684;stop-opacity:1" offset="0"/>
|
||||
<stop style="stop-color:#357cb5;stop-opacity:1" offset="1"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="pyYellow" xlink:href="#pyYellowGradient" x1="1108.9739" y1="3365.6448" x2="949.80927" y2="3144.1941" gradientUnits="userSpaceOnUse" gradientTransform="matrix(0.317715,0,0,0.317715,-172.579,-583.027)"/>
|
||||
<linearGradient id="pyBlue" xlink:href="#pyBlueGradient" x1="607.27795" y1="1841.619" x2="472.67371" y2="1660.6002" gradientUnits="userSpaceOnUse" gradientTransform="matrix(0.317715,0,0,0.317715,-71.39343,-151.2348)"/>
|
||||
</defs>
|
||||
|
||||
<g
|
||||
id="layer1">
|
||||
<path
|
||||
d="M 88.126188,110.89374 C 88.126188,99.932569 97.021954,91.036422 107.98312,91.023301 L 147.69781,91.023301 C 158.65898,91.036435 167.55475,99.932569 167.55475,110.88023 L 167.55475,148.11929 C 167.55475,159.08046 158.65898,167.97661 147.69781,167.97661 L 107.98312,167.97661 C 94.281853,167.97661 83.161955,179.0965 83.161955,192.79777 L 83.161955,210.17955 L 68.268873,210.16643 C 57.307706,210.17955 48.411559,201.27028 48.411559,190.30911 L 48.411559,150.59472 C 48.411559,139.64668 57.307706,130.73741 68.268873,130.73741 L 127.84044,130.75054 L 127.84044,125.78631 L 88.126061,125.78631 L 88.126061,110.89361 L 88.126188,110.89374 z M 105.49443,100.96489 C 109.61173,100.96489 112.94774,104.3009 112.94774,108.40504 C 112.94774,112.52196 109.61173,115.85797 105.49443,115.85797 C 101.39066,115.85797 98.041501,112.52196 98.041501,108.40504 C 98.041501,104.3009 101.39063,100.96489 105.49443,100.96489 z "
|
||||
style="fill:#426684;fill-rule:evenodd"
|
||||
id="path6" />
|
||||
<g
|
||||
transform="matrix(0.317715,0,0,0.317715,-71.39343,-151.2348)"
|
||||
style="fill-rule:evenodd"
|
||||
id="_19410248">
|
||||
<g
|
||||
id="g9">
|
||||
<path
|
||||
d="M 1102.42,902.293 C 1160.3365,901.33394 1186.6279,955.8347 1187.0861,1017.668 C 1187.0861,1072.1676 1159.8369,1123.293 1101.4196,1125.21 C 1077.5861,1125.21 1057.1283,1117.9179 1037.17,1105.7513 L 1037.17,1231.8353 L 1002.1279,1219.168 L 1002.6287,939.293 C 1002.1279,939.293 1029.8779,902.7934 1101.9204,901.793 L 1102.42,902.29379 L 1102.42,902.293 z M 1093.6279,1099.917 C 1140.3783,1097.0009 1146.2118,1051.2509 1146.2118,1015.2095 C 1146.2118,980.1674 1140.3783,927.5835 1096.087,925.6678 C 1065.9205,923.70953 1041.5449,937.8343 1036.7118,942.7087 L 1036.7118,1081.4177 C 1048.3787,1088.7098 1071.7527,1101.376 1093.6279,1099.9173 L 1093.6279,1099.917 z "
|
||||
style="fill:#6a6a6a"
|
||||
id="_19410568" />
|
||||
|
||||
<path
|
||||
d="M 1261,1051.25 L 1261,901.791 L 1224.9587,913.9587 L 1224.9587,1061.9577 C 1224.9587,1101.3746 1261.4996,1124.249 1293.6244,1124.249 C 1335.4579,1124.249 1359.3327,1112.5833 1370.0405,1107.7077 C 1370.4988,1113.0416 1370.0405,1111.5829 1370.0405,1116.9581 C 1370.0405,1132.5416 1369.5409,1159.2912 1362.2488,1172.9164 C 1347.6244,1200.6664 1308.7071,1204.5416 1281.4579,1208.4581 L 1287.2902,1230.8329 C 1323.2902,1229.875 1373.9158,1216.2498 1391.9162,1182.1668 C 1402.1658,1162.7081 1403.6245,1125.2081 1403.6245,1100.4168 L 1403.6245,907.16579 L 1368.0828,907.16579 L 1368.0828,1080.9168 C 1356.4159,1088.7085 1335.0001,1099.4164 1315.9997,1099.916 C 1284.3745,1100.4168 1261.0005,1083.3747 1261.0005,1050.7491 L 1261.0005,1051.2499 L 1261,1051.25 z "
|
||||
style="fill:#6a6a6a"
|
||||
id="_19412384" />
|
||||
|
||||
<path
|
||||
d="M 1463.29,930.043 L 1463.29,1069.751 C 1463.29,1106.2506 1491.5396,1127.6675 1538.7483,1123.2927 L 1538.7483,1104.7931 C 1513.9144,1103.7927 1498.8318,1097.0014 1498.8318,1068.7506 L 1498.8318,930.0436 L 1538.7483,930.0436 L 1538.7483,907.168 L 1498.8318,907.168 L 1498.8318,835.1267 L 1463.2901,847.7928 L 1463.2901,907.168 L 1438.957,907.168 L 1438.957,930.0436 L 1463.2901,930.0436 L 1463.29,930.043 z "
|
||||
style="fill:#6a6a6a"
|
||||
id="_19413104" />
|
||||
|
||||
<path
|
||||
d="M 1754.5,1120.33 L 1754.5,971.914 C 1754.5,934.9136 1729.1665,905.7061 1691.2083,905.7061 C 1662.5004,905.7061 1638.1674,914.95531 1616.7504,930.4974 L 1616.7504,781.0804 L 1581.2087,792.2879 L 1581.2087,1120.3299 L 1616.7504,1120.3299 L 1616.7504,955.8309 C 1634.7504,943.1636 1655.2083,930.0392 1677.5831,930.0392 C 1706.2922,930.0392 1718.4587,958.2475 1718.4587,983.0801 L 1718.4587,1120.3301 L 1754.5,1120.3301 L 1754.5,1120.33 z "
|
||||
style="fill:#6a6a6a"
|
||||
id="_19415136" />
|
||||
|
||||
<path
|
||||
d="M 1786.29,1009.88 C 1786.29,1068.7544 1817.4569,1124.254 1883.1652,1124.755 C 1949.3731,1124.2542 1981.4991,1068.7542 1981.4991,1009.88 C 1980.9983,952.4217 1944.9983,902.297 1883.6648,901.796 C 1822.8321,902.29679 1786.29,952.4216 1786.29,1009.88 L 1786.29,1009.88 z M 1824.7491,1009.88 C 1824.7491,971.4221 1834.4979,929.0879 1883.1652,926.1304 C 1928.9152,928.58827 1942.5404,971.4221 1942.5404,1009.88 C 1942.5404,1050.7544 1933.7896,1101.38 1884.1231,1102.8387 C 1838.3731,1102.3379 1825.2487,1050.7544 1825.2487,1009.88 L 1824.7491,1009.88 L 1824.7491,1009.88 z "
|
||||
style="fill:#6a6a6a"
|
||||
id="_19416104" />
|
||||
|
||||
<path
|
||||
d="M 2184.04,1120.33 L 2184.04,957.288 C 2184.04,928.5801 2161.1644,910.0805 2135.3727,904.2471 C 2110.0392,898.41364 2086.207,903.24671 2068.7066,908.1223 C 2046.2893,913.95576 2030.2475,924.2054 2012.2062,937.3298 L 2012.2062,1120.3298 L 2047.7479,1120.3298 L 2047.7479,941.7058 C 2058.9566,933.91407 2076.9566,925.6641 2095.957,925.1633 C 2127.0814,924.66369 2148.4983,942.705 2148.4983,975.2881 L 2148.4983,1120.3301 L 2184.04,1120.3301 L 2184.04,1120.33 z "
|
||||
style="fill:#6a6a6a"
|
||||
id="_19416592" />
|
||||
|
||||
</g>
|
||||
|
||||
</g>
|
||||
<path
|
||||
d="M 167.55462,230.0232 C 167.55462,240.98437 158.65885,249.88051 147.69769,249.89364 L 107.98299,249.89364 C 97.021827,249.88051 88.126061,240.98437 88.126061,230.0367 L 88.126061,192.79765 C 88.126061,181.83648 97.021827,172.94071 107.98299,172.94071 L 147.69769,172.94071 C 161.39896,172.94071 172.51923,161.82043 172.51923,148.11916 L 172.51923,130.73739 L 187.41193,130.75052 C 198.3731,130.73739 207.26925,139.64667 207.26925,150.60784 L 207.26925,190.3222 C 207.26925,201.27025 198.3731,210.17952 187.41193,210.17952 L 127.84037,210.16639 L 127.84037,215.13063 L 167.55475,215.13063 L 167.55475,230.02333 L 167.55462,230.0232 z M 150.17323,239.95205 C 146.06946,239.95205 142.73345,236.61604 142.73345,232.51227 C 142.73345,228.39497 146.06946,225.05897 150.17323,225.05897 C 154.29015,225.05897 157.62615,228.39497 157.62615,232.51227 C 157.62615,236.61604 154.29015,239.95205 150.17323,239.95205 z "
|
||||
style="fill:#d3aa3f;fill-rule:evenodd"
|
||||
id="path17" />
|
||||
<g
|
||||
transform="matrix(0.317715,0,0,0.317715,-71.39343,-151.2348)"
|
||||
style="fill-rule:evenodd"
|
||||
id="g1699">
|
||||
<polygon
|
||||
points="335.222,626.069 334.291,620.493 334.291,615.508 338.458,615.508 338.458,620.493 337.486,626.069 335.222,626.069 "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="_19419944" />
|
||||
<path
|
||||
d="M 341.798,634.527 C 341.798,630.52779 342.90942,627.56204 345.13816,625.6392 C 346.99249,624.04117 349.25666,623.23566 351.9295,623.23566 C 354.90233,623.23566 357.33186,624.20889 359.21454,626.16007 C 361.10312,628.10416 362.04092,630.79117 362.04092,634.22227 C 362.04092,637.00613 361.62399,639.19471 360.79013,640.78447 C 359.95745,642.38132 358.7421,643.61793 357.15233,644.49904 C 355.5543,645.38132 353.81808,645.81951 351.9295,645.81951 C 348.90942,645.81951 346.46454,644.85337 344.59604,642.90927 C 342.72872,640.97226 341.79801,638.18014 341.79801,634.52699 L 341.798,634.527 z M 345.56217,634.527 C 345.56217,637.29787 346.16571,639.36834 347.37398,640.74314 C 348.58225,642.12503 350.10351,642.81243 351.92949,642.81243 C 353.74957,642.81243 355.26256,642.11794 356.47083,640.73605 C 357.67319,639.35416 358.27674,637.24235 358.27674,634.41007 C 358.27674,631.73605 357.6732,629.7081 356.45784,628.3333 C 355.24249,626.9585 353.7354,626.2711 351.92949,626.2711 C 350.10351,626.2711 348.58225,626.9585 347.37398,628.32622 C 346.16571,629.69394 345.56217,631.76323 345.56217,634.52701 L 345.56217,634.527 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path21" />
|
||||
<path
|
||||
d="M 366.298,645.333 L 366.298,623.7295 L 369.58973,623.7295 L 369.58973,626.99997 C 370.42949,625.4728 371.20784,624.45824 371.92241,623.9728 C 372.63107,623.48619 373.41532,623.23579 374.27044,623.23579 C 375.50587,623.23579 376.75666,623.63264 378.03343,624.41689 L 376.76965,627.81965 C 375.88146,627.28461 374.985,627.02123 374.08973,627.02123 C 373.28422,627.02123 372.56847,627.26453 371.92949,627.74288 C 371.29051,628.2295 370.83933,628.89564 370.56886,629.74957 C 370.15902,631.04878 369.95823,632.47201 369.95823,634.02044 L 369.95823,645.33304 L 366.29799,645.33304 L 366.298,645.333 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path23" />
|
||||
<path
|
||||
d="M 380.228,619.722 L 380.228,615.50783 L 383.89414,615.50783 L 383.89414,619.722 L 380.228,619.722 z M 380.228,645.333 L 380.228,623.7295 L 383.89414,623.7295 L 383.89414,645.333 L 380.228,645.333 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path25" />
|
||||
<path
|
||||
d="M 388.796,647.125 L 392.3582,647.65295 C 392.50466,648.75019 392.92041,649.54862 393.59481,650.05531 C 394.50426,650.72854 395.74678,651.0687 397.31646,651.0687 C 399.01843,651.0687 400.32355,650.72855 401.24717,650.05531 C 402.17079,649.375 402.78851,648.42303 403.11449,647.20767 C 403.30937,646.45767 403.39323,644.89625 403.37906,642.50688 C 401.78221,644.38838 399.78851,645.33326 397.40032,645.33326 C 394.42749,645.33326 392.12906,644.26436 390.50386,642.1183 C 388.87984,639.97932 388.06016,637.40334 388.06016,634.41043 C 388.06016,632.34704 388.43457,630.44429 389.17748,628.70216 C 389.92748,626.95885 391.01173,625.61122 392.42787,624.66043 C 393.84401,623.71555 395.51055,623.23602 397.42039,623.23602 C 399.96921,623.23602 402.07393,624.27067 403.7263,626.33405 L 403.7263,623.72972 L 407.1078,623.72972 L 407.1078,642.40292 C 407.1078,645.76434 406.76055,648.15253 406.08024,649.55568 C 405.39283,650.95765 404.30977,652.06907 402.82394,652.88166 C 401.33693,653.69426 399.51095,654.1041 397.33772,654.1041 C 394.76055,654.1041 392.67827,653.52064 391.09441,652.36079 C 389.50465,651.20095 388.74047,649.45764 388.79598,647.12496 L 388.796,647.125 z M 391.82317,634.1459 C 391.82317,636.97936 392.38656,639.04866 393.51805,640.34787 C 394.64364,641.65299 396.0527,642.29905 397.74758,642.29905 C 399.42711,642.29905 400.83734,641.65299 401.97593,640.36086 C 403.11451,639.06283 403.68499,637.03488 403.68499,634.26401 C 403.68499,631.61834 403.10153,629.62582 401.92751,628.28527 C 400.75349,626.94472 399.33735,626.27149 397.68499,626.27149 C 396.05979,626.27149 394.6779,626.93054 393.53223,628.25692 C 392.39365,629.57621 391.82317,631.54157 391.82317,634.1459 L 391.82317,634.1459 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path27" />
|
||||
<path
|
||||
d="M 412.657,619.722 L 412.657,615.50783 L 416.32314,615.50783 L 416.32314,619.722 L 412.657,619.722 z M 412.657,645.333 L 412.657,623.7295 L 416.32314,623.7295 L 416.32314,645.333 L 412.657,645.333 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path29" />
|
||||
<path
|
||||
d="M 421.899,645.333 L 421.899,623.7295 L 425.19073,623.7295 L 425.19073,626.79919 C 426.78167,624.42399 429.07301,623.2358 432.06593,623.2358 C 433.37105,623.2358 434.56514,623.47202 435.65648,623.93737 C 436.75372,624.40982 437.56514,625.02045 438.10727,625.78462 C 438.65648,626.5417 439.03089,627.44407 439.25294,628.4858 C 439.38522,629.16729 439.45491,630.3543 439.45491,632.04919 L 439.45491,645.33309 L 435.78759,645.33309 L 435.78759,632.18739 C 435.78759,630.70156 435.6494,629.58306 435.36475,628.84015 C 435.08011,628.10432 434.57223,627.51377 433.85058,627.07676 C 433.12184,626.63266 432.27381,626.40943 431.29467,626.40943 C 429.73207,626.40943 428.3927,626.91022 427.25294,627.89644 C 426.12144,628.88857 425.55924,630.76416 425.55924,633.53502 L 425.55924,645.33302 L 421.899,645.33302 L 421.899,645.333 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path31" />
|
||||
<path
|
||||
d="M 459.17,642.666 C 457.80819,643.81876 456.50307,644.63135 455.25346,645.11088 C 453.99559,645.58332 452.64913,645.81954 451.21173,645.81954 C 448.83653,645.81954 447.01764,645.24316 445.73968,644.08332 C 444.46881,642.92348 443.82984,641.43765 443.82984,639.63883 C 443.82984,638.57584 444.06606,637.61088 444.55149,636.73568 C 445.03102,635.86048 445.66291,635.16009 446.44125,634.63214 C 447.22551,634.10419 448.1007,633.70143 449.07983,633.43096 C 449.7944,633.24317 450.87865,633.05537 452.32904,632.88175 C 455.2877,632.52742 457.46802,632.11049 458.86408,631.61797 C 458.87826,631.11836 458.88534,630.79828 458.88534,630.666 C 458.88534,629.17309 458.5381,628.11836 457.84361,627.51364 C 456.9129,626.68096 455.51684,626.27112 453.67668,626.27112 C 451.95463,626.27112 450.68377,626.56994 449.85699,627.17348 C 449.03731,627.77821 448.43376,628.8471 448.03809,630.38135 L 444.46171,629.88883 C 444.7877,628.36166 445.32274,627.11796 446.06565,626.18017 C 446.80857,625.23647 447.89163,624.50655 449.30187,623.99986 C 450.71093,623.49317 452.34321,623.23569 454.20463,623.23569 C 456.05187,623.23569 457.54479,623.45892 458.69754,623.88884 C 459.8503,624.32703 460.69715,624.86797 461.24636,625.52821 C 461.78731,626.18726 462.1629,627.01404 462.38494,628.02034 C 462.50305,628.64632 462.56565,629.77073 462.56565,631.39593 L 462.56565,636.27743 C 462.56565,639.68727 462.64124,641.84042 462.80187,642.7357 C 462.95423,643.63806 463.26723,644.50617 463.72549,645.33294 L 459.89872,645.33294 C 459.52432,644.57585 459.27392,643.68766 459.16998,642.66601 L 459.17,642.666 z M 458.86409,634.48569 C 457.53063,635.0349 455.53811,635.49317 452.88535,635.87467 C 451.37826,636.08963 450.30818,636.33294 449.69047,636.60341 C 449.06567,636.87506 448.57905,637.27073 448.24598,637.79869 C 447.90583,638.31956 447.7322,638.89593 447.7322,639.53491 C 447.7322,640.51404 448.1078,641.32664 448.84362,641.97861 C 449.57945,642.62467 450.66252,642.95066 452.08693,642.95066 C 453.49599,642.95066 454.75268,642.64593 455.84992,642.02704 C 456.94716,641.40932 457.75976,640.56247 458.27354,639.49239 C 458.66921,638.66679 458.8641,637.44435 458.8641,635.83333 L 458.8641,634.48569 L 458.86409,634.48569 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path33" />
|
||||
<polygon
|
||||
points="468.163,645.333 468.163,615.508 471.822,615.508 471.822,645.333 468.163,645.333 "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="polygon35" />
|
||||
<polygon
|
||||
points="477.516,626.069 476.585,620.493 476.585,615.508 480.752,615.508 480.752,620.493 479.78,626.069 477.516,626.069 "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="polygon37" />
|
||||
<polygon
|
||||
points="496.954,645.333 496.954,615.508 500.613,615.508 500.613,645.333 496.954,645.333 "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="polygon39" />
|
||||
<path
|
||||
d="M 504.925,634.527 C 504.925,630.52779 506.03642,627.56204 508.26516,625.6392 C 510.11949,624.04117 512.38366,623.23566 515.0565,623.23566 C 518.02933,623.23566 520.45886,624.20889 522.34154,626.16007 C 524.23012,628.10416 525.16792,630.79117 525.16792,634.22227 C 525.16792,637.00613 524.75099,639.19471 523.91713,640.78447 C 523.08445,642.38132 521.8691,643.61793 520.27933,644.49904 C 518.6813,645.38132 516.94508,645.81951 515.0565,645.81951 C 512.03642,645.81951 509.59154,644.85337 507.72304,642.90927 C 505.85572,640.97226 504.92501,638.18014 504.92501,634.52699 L 504.925,634.527 z M 508.68917,634.527 C 508.68917,637.29787 509.29271,639.36834 510.50098,640.74314 C 511.70925,642.12503 513.23051,642.81243 515.05649,642.81243 C 516.87657,642.81243 518.38956,642.11794 519.59783,640.73605 C 520.80019,639.35416 521.40374,637.24235 521.40374,634.41007 C 521.40374,631.73605 520.8002,629.7081 519.58484,628.3333 C 518.36949,626.9585 516.8624,626.2711 515.05649,626.2711 C 513.23051,626.2711 511.70925,626.9585 510.50098,628.32622 C 509.29271,629.69394 508.68917,631.76323 508.68917,634.52701 L 508.68917,634.527 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path41" />
|
||||
<path
|
||||
d="M 528.793,647.125 L 532.3552,647.65295 C 532.50166,648.75019 532.9174,649.54862 533.59181,650.05531 C 534.50126,650.72854 535.74378,651.0687 537.31346,651.0687 C 539.01543,651.0687 540.32055,650.72855 541.24417,650.05531 C 542.16779,649.375 542.78551,648.42303 543.11149,647.20767 C 543.30637,646.45767 543.39023,644.89625 543.37606,642.50688 C 541.77921,644.38838 539.78551,645.33326 537.39732,645.33326 C 534.42449,645.33326 532.12606,644.26436 530.50086,642.1183 C 528.87684,639.97932 528.05716,637.40334 528.05716,634.41043 C 528.05716,632.34704 528.43157,630.44429 529.17448,628.70216 C 529.92448,626.95885 531.00873,625.61122 532.42487,624.66043 C 533.84101,623.71555 535.50755,623.23602 537.41739,623.23602 C 539.96621,623.23602 542.07093,624.27067 543.7233,626.33405 L 543.7233,623.72972 L 547.1048,623.72972 L 547.1048,642.40292 C 547.1048,645.76434 546.75755,648.15253 546.07724,649.55568 C 545.38983,650.95765 544.30677,652.06907 542.82094,652.88166 C 541.33393,653.69426 539.50795,654.1041 537.33472,654.1041 C 534.75755,654.1041 532.67527,653.52064 531.09141,652.36079 C 529.50165,651.20095 528.73747,649.45764 528.79298,647.12496 L 528.793,647.125 z M 531.82017,634.1459 C 531.82017,636.97936 532.38356,639.04866 533.51505,640.34787 C 534.64064,641.65299 536.0497,642.29905 537.74458,642.29905 C 539.42411,642.29905 540.83434,641.65299 541.97293,640.36086 C 543.11151,639.06283 543.68199,637.03488 543.68199,634.26401 C 543.68199,631.61834 543.09852,629.62582 541.92451,628.28527 C 540.75049,626.94472 539.33435,626.27149 537.68199,626.27149 C 536.05679,626.27149 534.6749,626.93054 533.52923,628.25692 C 532.39065,629.57621 531.82017,631.54157 531.82017,634.1459 L 531.82017,634.1459 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path43" />
|
||||
<path
|
||||
d="M 551.271,634.527 C 551.271,630.52779 552.38242,627.56204 554.61116,625.6392 C 556.46549,624.04117 558.72966,623.23566 561.4025,623.23566 C 564.37533,623.23566 566.80486,624.20889 568.68754,626.16007 C 570.57612,628.10416 571.51392,630.79117 571.51392,634.22227 C 571.51392,637.00613 571.09699,639.19471 570.26313,640.78447 C 569.43045,642.38132 568.2151,643.61793 566.62533,644.49904 C 565.0273,645.38132 563.29108,645.81951 561.4025,645.81951 C 558.38242,645.81951 555.93754,644.85337 554.06904,642.90927 C 552.20172,640.97226 551.27101,638.18014 551.27101,634.52699 L 551.271,634.527 z M 555.03517,634.527 C 555.03517,637.29787 555.63871,639.36834 556.84698,640.74314 C 558.05525,642.12503 559.57651,642.81243 561.40249,642.81243 C 563.22257,642.81243 564.73556,642.11794 565.94383,640.73605 C 567.14619,639.35416 567.74974,637.24235 567.74974,634.41007 C 567.74974,631.73605 567.1462,629.7081 565.93084,628.3333 C 564.71549,626.9585 563.2084,626.2711 561.40249,626.2711 C 559.57651,626.2711 558.05525,626.9585 556.84698,628.32622 C 555.63871,629.69394 555.03517,631.76323 555.03517,634.52701 L 555.03517,634.527 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path45" />
|
||||
<path
|
||||
d="M 588.256,645.333 L 588.256,626.5759 L 585.02687,626.5759 L 585.02687,623.72944 L 588.256,623.72944 L 588.256,621.43101 C 588.256,619.97944 588.38828,618.89636 588.64458,618.19479 C 588.99891,617.24282 589.61781,616.47274 590.506,615.88219 C 591.39537,615.29164 592.63789,614.99991 594.24183,614.99991 C 595.27057,614.99991 596.40915,615.11802 597.65876,615.36841 L 597.11073,618.56329 C 596.35364,618.42392 595.63081,618.35424 594.95049,618.35424 C 593.83907,618.35424 593.05482,618.59046 592.59655,619.06998 C 592.1312,619.54242 591.90206,620.43061 591.90206,621.73573 L 591.90206,623.72943 L 596.11033,623.72943 L 596.11033,626.57589 L 591.90206,626.57589 L 591.90206,645.33299 L 588.256,645.33299 L 588.256,645.333 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path47" />
|
||||
<path
|
||||
d="M 598.923,645.333 L 598.923,623.7295 L 602.21473,623.7295 L 602.21473,626.99997 C 603.05449,625.4728 603.83284,624.45824 604.54741,623.9728 C 605.25607,623.48619 606.04032,623.23579 606.89544,623.23579 C 608.13087,623.23579 609.38166,623.63264 610.65843,624.41689 L 609.39465,627.81965 C 608.50646,627.28461 607.61,627.02123 606.71473,627.02123 C 605.90922,627.02123 605.19347,627.26453 604.55449,627.74288 C 603.91551,628.2295 603.46433,628.89564 603.19386,629.74957 C 602.78402,631.04878 602.58323,632.47201 602.58323,634.02044 L 602.58323,645.33304 L 598.92299,645.33304 L 598.923,645.333 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path49" />
|
||||
<path
|
||||
d="M 611.471,634.527 C 611.471,630.52779 612.58242,627.56204 614.81116,625.6392 C 616.66549,624.04117 618.92966,623.23566 621.6025,623.23566 C 624.57533,623.23566 627.00486,624.20889 628.88754,626.16007 C 630.77612,628.10416 631.71392,630.79117 631.71392,634.22227 C 631.71392,637.00613 631.29699,639.19471 630.46313,640.78447 C 629.63045,642.38132 628.4151,643.61793 626.82533,644.49904 C 625.2273,645.38132 623.49108,645.81951 621.6025,645.81951 C 618.58242,645.81951 616.13754,644.85337 614.26904,642.90927 C 612.40172,640.97226 611.47101,638.18014 611.47101,634.52699 L 611.471,634.527 z M 615.23517,634.527 C 615.23517,637.29787 615.83871,639.36834 617.04698,640.74314 C 618.25525,642.12503 619.77651,642.81243 621.60249,642.81243 C 623.42257,642.81243 624.93556,642.11794 626.14383,640.73605 C 627.34619,639.35416 627.94974,637.24235 627.94974,634.41007 C 627.94974,631.73605 627.3462,629.7081 626.13084,628.3333 C 624.91549,626.9585 623.4084,626.2711 621.60249,626.2711 C 619.77651,626.2711 618.25525,626.9585 617.04698,628.32622 C 615.83871,629.69394 615.23517,631.76323 615.23517,634.52701 L 615.23517,634.527 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path51" />
|
||||
<path
|
||||
d="M 636.012,645.333 L 636.012,623.7295 L 639.28365,623.7295 L 639.28365,626.75667 C 639.96396,625.70195 640.86633,624.84683 641.99192,624.20903 C 643.11633,623.56297 644.40137,623.2358 645.83877,623.2358 C 647.43562,623.2358 648.74783,623.57005 649.76948,624.23619 C 650.79704,624.90351 651.51869,625.82595 651.93562,627.02123 C 653.65058,624.50076 655.87342,623.2358 658.60885,623.2358 C 660.75491,623.2358 662.40019,623.83344 663.55294,625.02045 C 664.7057,626.20864 665.28207,628.03462 665.28207,630.49958 L 665.28207,645.33308 L 661.64427,645.33308 L 661.64427,631.72208 C 661.64427,630.25751 661.52616,629.20161 661.28994,628.55554 C 661.04663,627.91657 660.61553,627.3957 659.99781,627.00003 C 659.37301,626.61145 658.63718,626.40948 657.79624,626.40948 C 656.27616,626.40948 655.01829,626.91735 654.01199,627.93074 C 653.0116,628.93822 652.5049,630.55515 652.5049,632.77798 L 652.5049,645.33308 L 648.84584,645.33308 L 648.84584,631.29918 C 648.84584,629.6669 648.54702,628.44446 647.94938,627.63186 C 647.35293,626.81926 646.37969,626.40942 645.01907,626.40942 C 643.99151,626.40942 643.03954,626.68107 642.16553,627.22911 C 641.29034,627.77123 640.65136,628.56257 640.26277,629.60431 C 639.86592,630.65313 639.67222,632.16022 639.67222,634.12439 L 639.67222,645.33309 L 636.01198,645.33309 L 636.012,645.333 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path53" />
|
||||
<path
|
||||
d="M 685.671,645.333 L 682.27533,645.333 L 682.27533,615.5078 L 685.93439,615.5078 L 685.93439,626.146 C 687.48282,624.20899 689.45526,623.23576 691.85053,623.23576 C 693.18399,623.23576 694.44187,623.50741 695.62888,624.04127 C 696.81589,624.57631 697.78794,625.3334 698.55919,626.29836 C 699.32336,627.27041 699.92691,628.43734 700.35801,629.81214 C 700.79502,631.18104 701.01116,632.6456 701.01116,634.20112 C 701.01116,637.90978 700.09344,640.77041 698.26037,642.79128 C 696.43439,644.81215 694.23281,645.81963 691.671,645.81963 C 689.12218,645.81963 687.12257,644.75664 685.671,642.62475 L 685.671,645.33302 L 685.671,645.333 z M 685.62848,634.3676 C 685.62848,636.95776 685.98281,638.82626 686.68439,639.97902 C 687.83715,641.8676 689.39974,642.81248 691.3651,642.81248 C 692.96904,642.81248 694.35093,642.11799 695.51786,640.72193 C 696.68479,639.33295 697.26707,637.26366 697.26707,634.50697 C 697.26707,631.68768 696.70487,629.60421 695.58754,628.26366 C 694.46904,626.92311 693.11549,626.24988 691.53163,626.24988 C 689.92769,626.24988 688.5458,626.94437 687.37887,628.33334 C 686.21194,629.72232 685.62848,631.7361 685.62848,634.36759 L 685.62848,634.3676 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path55" />
|
||||
<path
|
||||
d="M 720.254,638.375 L 724.03825,638.84035 C 723.44061,641.05492 722.33746,642.76988 720.72644,643.99232 C 719.10833,645.20767 717.04494,645.81949 714.53864,645.81949 C 711.37919,645.81949 708.87171,644.84627 707.02447,642.90217 C 705.17014,640.95808 704.24652,638.22855 704.24652,634.71477 C 704.24652,631.07579 705.18431,628.2565 707.05282,626.24981 C 708.92723,624.24312 711.35085,623.23564 714.33668,623.23564 C 717.22566,623.23564 719.58668,624.22186 721.41385,626.18721 C 723.24692,628.15256 724.16346,630.92343 724.16346,634.48564 C 724.16346,634.70769 724.15637,635.03486 724.1422,635.46478 L 708.032,635.46478 C 708.16428,637.83998 708.83751,639.65887 710.04578,640.91675 C 711.25405,642.18053 712.75405,642.81242 714.55995,642.81242 C 715.89932,642.81242 717.04499,642.45809 717.99696,641.74943 C 718.94775,641.04785 719.69775,639.92345 720.25405,638.37502 L 720.254,638.375 z M 708.2327,632.45177 L 720.2953,632.45177 C 720.13585,630.63878 719.6705,629.27106 718.91341,628.36752 C 717.74648,626.95846 716.23349,626.2498 714.37916,626.2498 C 712.69845,626.2498 711.28113,626.81201 710.13546,627.9376 C 708.98979,629.06201 708.3579,630.5691 708.2327,632.45177 L 708.2327,632.45177 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path57" />
|
||||
<path
|
||||
d="M 736.636,642.056 L 737.16277,645.29222 C 736.13521,645.50718 735.21159,645.6182 734.39899,645.6182 C 733.06671,645.6182 732.03797,645.41033 731.30214,644.98631 C 730.5734,644.56939 730.05962,644.01427 729.7608,643.32686 C 729.46198,642.64655 729.30962,641.20206 729.30962,639.00757 L 729.30962,626.57647 L 726.62143,626.57647 L 726.62143,623.73001 L 729.30962,623.73001 L 729.30962,618.37607 L 732.9545,616.18158 L 732.9545,623.73001 L 736.636,623.73001 L 736.636,626.57647 L 732.9545,626.57647 L 732.9545,639.20837 C 732.9545,640.25719 733.0171,640.92451 733.1423,641.22215 C 733.27458,641.52097 733.48245,641.75719 733.77419,641.9379 C 734.06592,642.11152 734.48285,642.20129 735.02498,642.20129 C 735.43364,642.20129 735.96868,642.15286 736.636,642.05601 L 736.636,642.056 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path59" />
|
||||
<path
|
||||
d="M 754.316,642.666 C 752.95419,643.81876 751.64907,644.63135 750.39946,645.11088 C 749.14159,645.58332 747.79513,645.81954 746.35773,645.81954 C 743.98253,645.81954 742.16364,645.24316 740.88568,644.08332 C 739.61481,642.92348 738.97584,641.43765 738.97584,639.63883 C 738.97584,638.57584 739.21206,637.61088 739.69749,636.73568 C 740.17702,635.86048 740.80891,635.16009 741.58725,634.63214 C 742.37151,634.10419 743.2467,633.70143 744.22583,633.43096 C 744.9404,633.24317 746.02465,633.05537 747.47504,632.88175 C 750.4337,632.52742 752.61402,632.11049 754.01008,631.61797 C 754.02426,631.11836 754.03134,630.79828 754.03134,630.666 C 754.03134,629.17309 753.6841,628.11836 752.98961,627.51364 C 752.0589,626.68096 750.66284,626.27112 748.82268,626.27112 C 747.10063,626.27112 745.82977,626.56994 745.00299,627.17348 C 744.18331,627.77821 743.57976,628.8471 743.18409,630.38135 L 739.60771,629.88883 C 739.9337,628.36166 740.46874,627.11796 741.21165,626.18017 C 741.95457,625.23647 743.03763,624.50655 744.44787,623.99986 C 745.85693,623.49317 747.48921,623.23569 749.35063,623.23569 C 751.19787,623.23569 752.69079,623.45892 753.84354,623.88884 C 754.9963,624.32703 755.84315,624.86797 756.39236,625.52821 C 756.93331,626.18726 757.3089,627.01404 757.53094,628.02034 C 757.64905,628.64632 757.71165,629.77073 757.71165,631.39593 L 757.71165,636.27743 C 757.71165,639.68727 757.78724,641.84042 757.94787,642.7357 C 758.10023,643.63806 758.41323,644.50617 758.87149,645.33294 L 755.04472,645.33294 C 754.67032,644.57585 754.41992,643.68766 754.31598,642.66601 L 754.316,642.666 z M 754.01009,634.48569 C 752.67663,635.0349 750.68411,635.49317 748.03135,635.87467 C 746.52426,636.08963 745.45418,636.33294 744.83647,636.60341 C 744.21167,636.87506 743.72505,637.27073 743.39198,637.79869 C 743.05183,638.31956 742.8782,638.89593 742.8782,639.53491 C 742.8782,640.51404 743.25379,641.32664 743.98962,641.97861 C 744.72545,642.62467 745.80852,642.95066 747.23293,642.95066 C 748.64199,642.95066 749.89868,642.64593 750.99592,642.02704 C 752.09316,641.40932 752.90576,640.56247 753.41954,639.49239 C 753.81521,638.66679 754.01009,637.44435 754.01009,635.83333 L 754.01009,634.48569 L 754.01009,634.48569 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path61" />
|
||||
<polygon
|
||||
points="764.426,645.333 764.426,641.159 768.6,641.159 768.6,645.333 764.426,645.333 "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="polygon63" />
|
||||
<path
|
||||
d="M 774.967,653.61 L 774.967,623.7293 L 778.30007,623.7293 L 778.30007,626.53442 C 779.0855,625.43718 779.97369,624.61159 780.967,624.06237 C 781.95322,623.51434 783.1544,623.2356 784.56464,623.2356 C 786.41188,623.2356 788.03708,623.71513 789.44614,624.66001 C 790.86228,625.61079 791.92527,626.95135 792.64102,628.68048 C 793.36267,630.40961 793.72409,632.30528 793.72409,634.36749 C 793.72409,636.57615 793.32842,638.56867 792.53,640.34032 C 791.73748,642.11079 790.58472,643.46434 789.07173,644.40922 C 787.55756,645.34701 785.96661,645.81946 784.30008,645.81946 C 783.07882,645.81946 781.98748,645.56198 781.01543,645.0482 C 780.04338,644.53442 779.25204,643.88127 778.62724,643.09702 L 778.62724,653.61002 L 774.967,653.61002 L 774.967,653.61 z M 778.27999,634.6521 C 778.27999,637.43005 778.84219,639.48517 779.96779,640.81864 C 781.0922,642.14502 782.45992,642.81234 784.05795,642.81234 C 785.68197,642.81234 787.07803,642.12494 788.23787,640.74305 C 789.39771,639.36825 789.98118,637.23636 789.98118,634.34738 C 789.98118,631.58951 789.41189,629.53439 788.27921,628.15958 C 787.14771,626.79186 785.79299,626.10446 784.22449,626.10446 C 782.66189,626.10446 781.28,626.8332 780.07882,628.29186 C 778.87646,629.74934 778.28,631.87532 778.28,634.6521 L 778.27999,634.6521 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path65" />
|
||||
<path
|
||||
d="M 797.974,653.653 L 797.56416,650.21481 C 798.36967,650.43095 799.06416,650.54198 799.6618,650.54198 C 800.47439,650.54198 801.12637,650.40261 801.61298,650.13213 C 802.1055,649.86048 802.50235,649.48607 802.81416,648.99237 C 803.05038,648.63214 803.41888,647.72268 803.93266,646.27111 C 804.00234,646.06206 804.11337,645.77033 804.25864,645.37465 L 796.06415,623.72975 L 800.00903,623.72975 L 804.50903,636.23645 C 805.08541,637.82621 805.61336,639.49275 806.07163,641.24315 C 806.49447,639.56244 806.99525,637.92425 807.57872,636.31912 L 812.19565,623.72973 L 815.85589,623.72973 L 807.64014,645.70173 C 806.75904,648.07574 806.07164,649.70803 805.58502,650.60448 C 804.93187,651.81275 804.18896,652.69385 803.34919,653.25724 C 802.50234,653.81945 801.50195,654.10409 800.33502,654.10409 C 799.62636,654.10409 798.84211,653.95055 797.974,653.65291 L 797.974,653.653 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path67" />
|
||||
<path
|
||||
d="M 826.967,642.056 L 827.49377,645.29222 C 826.46621,645.50718 825.54259,645.6182 824.72999,645.6182 C 823.39771,645.6182 822.36897,645.41033 821.63314,644.98631 C 820.9044,644.56939 820.39062,644.01427 820.0918,643.32686 C 819.79298,642.64655 819.64062,641.20206 819.64062,639.00757 L 819.64062,626.57647 L 816.95243,626.57647 L 816.95243,623.73001 L 819.64062,623.73001 L 819.64062,618.37607 L 823.2855,616.18158 L 823.2855,623.73001 L 826.967,623.73001 L 826.967,626.57647 L 823.2855,626.57647 L 823.2855,639.20837 C 823.2855,640.25719 823.3481,640.92451 823.4733,641.22215 C 823.60558,641.52097 823.81345,641.75719 824.10519,641.9379 C 824.39692,642.11152 824.81385,642.20129 825.35598,642.20129 C 825.76464,642.20129 826.29968,642.15286 826.967,642.05601 L 826.967,642.056 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path69" />
|
||||
<path
|
||||
d="M 830.549,645.333 L 830.549,615.5078 L 834.20924,615.5078 L 834.20924,626.2086 C 835.91711,624.22907 838.07735,623.23577 840.6805,623.23577 C 842.27853,623.23577 843.66751,623.55585 844.84743,624.18774 C 846.02853,624.81254 846.87538,625.68774 847.38208,626.79916 C 847.88877,627.9094 848.14625,629.52751 848.14625,631.63932 L 848.14625,645.33302 L 844.48011,645.33302 L 844.48011,631.63932 C 844.48011,629.81215 844.08326,628.47869 843.29192,627.64601 C 842.50058,626.81215 841.37499,626.38932 839.9246,626.38932 C 838.84035,626.38932 837.81988,626.67396 836.862,627.23617 C 835.90295,627.79837 835.22263,628.56255 834.81987,629.52751 C 834.41003,630.48656 834.20924,631.81885 834.20924,633.51373 L 834.20924,645.33303 L 830.549,645.33303 L 830.549,645.333 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path71" />
|
||||
<path
|
||||
d="M 852.354,634.527 C 852.354,630.52779 853.46542,627.56204 855.69416,625.6392 C 857.54849,624.04117 859.81266,623.23566 862.4855,623.23566 C 865.45833,623.23566 867.88786,624.20889 869.77054,626.16007 C 871.65912,628.10416 872.59692,630.79117 872.59692,634.22227 C 872.59692,637.00613 872.17999,639.19471 871.34613,640.78447 C 870.51345,642.38132 869.2981,643.61793 867.70833,644.49904 C 866.1103,645.38132 864.37408,645.81951 862.4855,645.81951 C 859.46542,645.81951 857.02054,644.85337 855.15204,642.90927 C 853.28472,640.97226 852.35401,638.18014 852.35401,634.52699 L 852.354,634.527 z M 856.11817,634.527 C 856.11817,637.29787 856.72171,639.36834 857.92998,640.74314 C 859.13825,642.12503 860.65951,642.81243 862.48549,642.81243 C 864.30557,642.81243 865.81856,642.11794 867.02683,640.73605 C 868.22919,639.35416 868.83274,637.24235 868.83274,634.41007 C 868.83274,631.73605 868.2292,629.7081 867.01384,628.3333 C 865.79849,626.9585 864.2914,626.2711 862.48549,626.2711 C 860.65951,626.2711 859.13825,626.9585 857.92998,628.32622 C 856.72171,629.69394 856.11817,631.76323 856.11817,634.52701 L 856.11817,634.527 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path73" />
|
||||
<path
|
||||
d="M 876.895,645.333 L 876.895,623.7295 L 880.18673,623.7295 L 880.18673,626.79919 C 881.77767,624.42399 884.06901,623.2358 887.06193,623.2358 C 888.36705,623.2358 889.56114,623.47202 890.65248,623.93737 C 891.74972,624.40982 892.56114,625.02045 893.10327,625.78462 C 893.65248,626.5417 894.02689,627.44407 894.24894,628.4858 C 894.38122,629.16729 894.45091,630.3543 894.45091,632.04919 L 894.45091,645.33309 L 890.78359,645.33309 L 890.78359,632.18739 C 890.78359,630.70156 890.6454,629.58306 890.36075,628.84015 C 890.07611,628.10432 889.56823,627.51377 888.84658,627.07676 C 888.11784,626.63266 887.26981,626.40943 886.29067,626.40943 C 884.72807,626.40943 883.3887,626.91022 882.24894,627.89644 C 881.11744,628.88857 880.55524,630.76416 880.55524,633.53502 L 880.55524,645.33302 L 876.895,645.33302 L 876.895,645.333 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path75" />
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.317715,0,0,0.317715,-71.39343,-151.2348)"
|
||||
style="fill-rule:evenodd"
|
||||
id="_19428312">
|
||||
<path
|
||||
d="M 341.207,1443.54 L 332.98535,1421.9365 L 336.85346,1421.9365 L 341.49165,1434.8731 C 341.99244,1436.2692 342.4507,1437.7207 342.87354,1439.2278 C 343.2007,1438.0892 343.65189,1436.7203 344.23535,1435.1164 L 349.04007,1421.9365 L 352.80424,1421.9365 L 344.62393,1443.54 L 341.207,1443.54 L 341.207,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="_19439224" />
|
||||
|
||||
<path
|
||||
d="M 370.825,1436.58 L 374.60925,1437.0454 C 374.01161,1439.2599 372.90846,1440.9749 371.29744,1442.1973 C 369.67933,1443.4127 367.61594,1444.0245 365.10964,1444.0245 C 361.95019,1444.0245 359.44271,1443.0513 357.59547,1441.1072 C 355.74114,1439.1631 354.81752,1436.4336 354.81752,1432.9198 C 354.81752,1429.2808 355.75532,1426.4615 357.62382,1424.4548 C 359.49823,1422.4481 361.92185,1421.4406 364.90768,1421.4406 C 367.79666,1421.4406 370.15768,1422.4269 371.98485,1424.3922 C 373.81792,1426.3576 374.73446,1429.1284 374.73446,1432.6906 C 374.73446,1432.9127 374.72737,1433.2399 374.7132,1433.6698 L 358.603,1433.6698 C 358.73528,1436.045 359.40851,1437.8639 360.61678,1439.1217 C 361.82505,1440.3855 363.32505,1441.0174 365.13095,1441.0174 C 366.47032,1441.0174 367.61599,1440.6631 368.56796,1439.9544 C 369.51875,1439.2529 370.26875,1438.1284 370.82505,1436.58 L 370.825,1436.58 z M 358.8037,1430.6568 L 370.8663,1430.6568 C 370.70685,1428.8438 370.2415,1427.4761 369.48441,1426.5725 C 368.31748,1425.1635 366.80449,1424.4548 364.95016,1424.4548 C 363.26945,1424.4548 361.85213,1425.017 360.70646,1426.1426 C 359.56079,1427.267 358.9289,1428.7741 358.8037,1430.6568 L 358.8037,1430.6568 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path79" />
|
||||
|
||||
<path
|
||||
d="M 379.172,1443.54 L 379.172,1421.9365 L 382.46373,1421.9365 L 382.46373,1425.207 C 383.30349,1423.6798 384.08184,1422.6652 384.79641,1422.1798 C 385.50507,1421.6932 386.28932,1421.4428 387.14444,1421.4428 C 388.37987,1421.4428 389.63066,1421.8396 390.90743,1422.6239 L 389.64365,1426.0267 C 388.75546,1425.4916 387.859,1425.2282 386.96373,1425.2282 C 386.15822,1425.2282 385.44247,1425.4715 384.80349,1425.9499 C 384.16451,1426.4365 383.71333,1427.1026 383.44286,1427.9566 C 383.03302,1429.2558 382.83223,1430.679 382.83223,1432.2274 L 382.83223,1443.54 L 379.17199,1443.54 L 379.172,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path81" />
|
||||
|
||||
<path
|
||||
d="M 391.623,1437.09 L 395.24072,1436.5207 C 395.44151,1437.9723 396.01198,1439.0825 396.94151,1439.8609 C 397.86513,1440.6309 399.16434,1441.0207 400.83797,1441.0207 C 402.51868,1441.0207 403.76828,1440.6735 404.58088,1439.9931 C 405.39348,1439.3057 405.80332,1438.4991 405.80332,1437.5825 C 405.80332,1436.7498 405.4419,1436.1038 404.71907,1435.6242 C 404.21946,1435.2983 402.96986,1434.8884 400.97616,1434.3888 C 398.29624,1433.7085 396.42773,1433.125 395.39309,1432.6242 C 394.35844,1432.1317 393.56711,1431.4443 393.03207,1430.5691 C 392.49821,1429.6939 392.22656,1428.729 392.22656,1427.6731 C 392.22656,1426.7081 392.4486,1425.8199 392.89388,1425.0002 C 393.33089,1424.1735 393.93561,1423.4931 394.69152,1422.951 C 395.26199,1422.5353 396.03916,1422.1739 397.01829,1421.8821 C 398.00451,1421.5904 399.06042,1421.4439 400.18483,1421.4439 C 401.87971,1421.4439 403.36554,1421.6943 404.65058,1422.1809 C 405.93444,1422.6664 406.87932,1423.3266 407.48995,1424.1593 C 408.10176,1425.0002 408.51869,1426.1105 408.74782,1427.5065 L 405.17144,1428.0002 C 405.00491,1426.8888 404.53247,1426.0207 403.75412,1425.3959 C 402.97696,1424.7711 401.87262,1424.4581 400.4494,1424.4581 C 398.76869,1424.4581 397.56751,1424.7357 396.85176,1425.292 C 396.13011,1425.8471 395.76869,1426.5002 395.76869,1427.2432 C 395.76869,1427.7215 395.92105,1428.1455 396.21987,1428.5282 C 396.51869,1428.9239 396.98405,1429.2428 397.62302,1429.5073 C 397.99034,1429.6384 399.06751,1429.9514 400.85806,1430.4369 C 403.44822,1431.1313 405.25412,1431.6947 406.2746,1432.1388 C 407.30334,1432.5758 408.10885,1433.2219 408.69232,1434.0617 C 409.27461,1434.9026 409.56634,1435.9443 409.56634,1437.1939 C 409.56634,1438.4164 409.2061,1439.562 408.49744,1440.6451 C 407.78169,1441.7223 406.75413,1442.555 405.41358,1443.1455 C 404.07421,1443.7361 402.55295,1444.0278 400.85807,1444.0278 C 398.04587,1444.0278 395.90689,1443.4443 394.43524,1442.2774 C 392.96241,1441.1105 392.02579,1439.3813 391.62304,1437.09 L 391.623,1437.09 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path83" />
|
||||
|
||||
<path
|
||||
d="M 413.934,1417.93 L 413.934,1413.7158 L 417.60014,1413.7158 L 417.60014,1417.93 L 413.934,1417.93 z M 413.934,1443.541 L 413.934,1421.9375 L 417.60014,1421.9375 L 417.60014,1443.541 L 413.934,1443.541 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path85" />
|
||||
|
||||
<path
|
||||
d="M 421.808,1432.74 C 421.808,1428.7408 422.91942,1425.775 425.14816,1423.8522 C 427.00249,1422.2542 429.26666,1421.4487 431.9395,1421.4487 C 434.91233,1421.4487 437.34186,1422.4219 439.22454,1424.3731 C 441.11312,1426.3172 442.05092,1429.0042 442.05092,1432.4353 C 442.05092,1435.2191 441.63399,1437.4077 440.80013,1438.9975 C 439.96745,1440.5943 438.7521,1441.8309 437.16233,1442.712 C 435.5643,1443.5943 433.82808,1444.0325 431.9395,1444.0325 C 428.91942,1444.0325 426.47454,1443.0664 424.60604,1441.1223 C 422.73872,1439.1853 421.80801,1436.3931 421.80801,1432.74 L 421.808,1432.74 z M 425.57217,1432.74 C 425.57217,1435.5109 426.17571,1437.5813 427.38398,1438.9561 C 428.59225,1440.338 430.11351,1441.0254 431.93949,1441.0254 C 433.75957,1441.0254 435.27256,1440.3309 436.48083,1438.949 C 437.68319,1437.5672 438.28674,1435.4554 438.28674,1432.6231 C 438.28674,1429.949 437.6832,1427.9211 436.46784,1426.5463 C 435.25249,1425.1715 433.7454,1424.4841 431.93949,1424.4841 C 430.11351,1424.4841 428.59225,1425.1715 427.38398,1426.5392 C 426.17571,1427.9069 425.57217,1429.9762 425.57217,1432.74 L 425.57217,1432.74 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path87" />
|
||||
|
||||
<path
|
||||
d="M 446.349,1443.54 L 446.349,1421.9365 L 449.64073,1421.9365 L 449.64073,1425.0062 C 451.23167,1422.631 453.52301,1421.4428 456.51593,1421.4428 C 457.82105,1421.4428 459.01514,1421.679 460.10648,1422.1444 C 461.20372,1422.6168 462.01514,1423.2274 462.55727,1423.9916 C 463.10648,1424.7487 463.48089,1425.6511 463.70294,1426.6928 C 463.83522,1427.3743 463.90491,1428.5613 463.90491,1430.2562 L 463.90491,1443.5401 L 460.23759,1443.5401 L 460.23759,1430.3944 C 460.23759,1428.9086 460.0994,1427.7901 459.81475,1427.0471 C 459.53011,1426.3113 459.02223,1425.7208 458.30058,1425.2838 C 457.57184,1424.8397 456.72381,1424.6164 455.74467,1424.6164 C 454.18207,1424.6164 452.8427,1425.1172 451.70294,1426.1034 C 450.57144,1427.0956 450.00924,1428.9712 450.00924,1431.742 L 450.00924,1443.54 L 446.349,1443.54 L 446.349,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path89" />
|
||||
|
||||
<path
|
||||
d="M 481.113,1417.93 L 481.113,1413.7158 L 484.77914,1413.7158 L 484.77914,1417.93 L 481.113,1417.93 z M 481.113,1443.541 L 481.113,1421.9375 L 484.77914,1421.9375 L 484.77914,1443.541 L 481.113,1443.541 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path91" />
|
||||
|
||||
<path
|
||||
d="M 490.355,1443.54 L 490.355,1421.9365 L 493.64673,1421.9365 L 493.64673,1425.0062 C 495.23767,1422.631 497.52901,1421.4428 500.52193,1421.4428 C 501.82705,1421.4428 503.02114,1421.679 504.11248,1422.1444 C 505.20972,1422.6168 506.02114,1423.2274 506.56327,1423.9916 C 507.11248,1424.7487 507.48689,1425.6511 507.70894,1426.6928 C 507.84122,1427.3743 507.91091,1428.5613 507.91091,1430.2562 L 507.91091,1443.5401 L 504.24359,1443.5401 L 504.24359,1430.3944 C 504.24359,1428.9086 504.1054,1427.7901 503.82075,1427.0471 C 503.53611,1426.3113 503.02823,1425.7208 502.30658,1425.2838 C 501.57784,1424.8397 500.72981,1424.6164 499.75067,1424.6164 C 498.18807,1424.6164 496.8487,1425.1172 495.70894,1426.1034 C 494.57744,1427.0956 494.01524,1428.9712 494.01524,1431.742 L 494.01524,1443.54 L 490.355,1443.54 L 490.355,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path93" />
|
||||
|
||||
<path
|
||||
d="M 539.264,1443.54 L 539.264,1440.3664 C 537.5762,1442.8113 535.29195,1444.0266 532.40298,1444.0266 C 531.13211,1444.0266 529.93684,1443.7833 528.83369,1443.2967 C 527.72936,1442.8113 526.90967,1442.1924 526.37463,1441.4565 C 525.83368,1440.7136 525.45809,1439.8113 525.24313,1438.7412 C 525.09667,1438.0195 525.02108,1436.8809 525.02108,1435.3184 L 525.02108,1421.9365 L 528.68014,1421.9365 L 528.68014,1433.9152 C 528.68014,1435.8321 528.75691,1437.1159 528.90219,1437.7833 C 529.13841,1438.7482 529.62502,1439.4982 530.36794,1440.0533 C 531.11794,1440.6026 532.04156,1440.873 533.13881,1440.873 C 534.23605,1440.873 535.26361,1440.5955 536.22857,1440.0333 C 537.19353,1439.4711 537.87503,1438.6998 538.2707,1437.7348 C 538.67346,1436.7628 538.87424,1435.3526 538.87424,1433.5124 L 538.87424,1421.9364 L 542.53448,1421.9364 L 542.53448,1443.5399 L 539.26401,1443.5399 L 539.264,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path95" />
|
||||
|
||||
<path
|
||||
d="M 546.813,1437.09 L 550.43072,1436.5207 C 550.63151,1437.9723 551.20198,1439.0825 552.13151,1439.8609 C 553.05513,1440.6309 554.35434,1441.0207 556.02797,1441.0207 C 557.70868,1441.0207 558.95828,1440.6735 559.77088,1439.9931 C 560.58348,1439.3057 560.99332,1438.4991 560.99332,1437.5825 C 560.99332,1436.7498 560.6319,1436.1038 559.90907,1435.6242 C 559.40946,1435.2983 558.15986,1434.8884 556.16616,1434.3888 C 553.48624,1433.7085 551.61773,1433.125 550.58309,1432.6242 C 549.54844,1432.1317 548.75711,1431.4443 548.22207,1430.5691 C 547.68821,1429.6939 547.41656,1428.729 547.41656,1427.6731 C 547.41656,1426.7081 547.6386,1425.8199 548.08388,1425.0002 C 548.52089,1424.1735 549.12561,1423.4931 549.88152,1422.951 C 550.45199,1422.5353 551.22916,1422.1739 552.20829,1421.8821 C 553.19451,1421.5904 554.25042,1421.4439 555.37483,1421.4439 C 557.06971,1421.4439 558.55554,1421.6943 559.84058,1422.1809 C 561.12444,1422.6664 562.06932,1423.3266 562.67995,1424.1593 C 563.29176,1425.0002 563.70869,1426.1105 563.93782,1427.5065 L 560.36144,1428.0002 C 560.19491,1426.8888 559.72247,1426.0207 558.94412,1425.3959 C 558.16696,1424.7711 557.06262,1424.4581 555.6394,1424.4581 C 553.95869,1424.4581 552.75751,1424.7357 552.04176,1425.292 C 551.32011,1425.8471 550.95869,1426.5002 550.95869,1427.2432 C 550.95869,1427.7215 551.11105,1428.1455 551.40987,1428.5282 C 551.70869,1428.9239 552.17405,1429.2428 552.81302,1429.5073 C 553.18035,1429.6384 554.25751,1429.9514 556.04806,1430.4369 C 558.63822,1431.1313 560.44412,1431.6947 561.4646,1432.1388 C 562.49334,1432.5758 563.29885,1433.2219 563.88232,1434.0617 C 564.46461,1434.9026 564.75634,1435.9443 564.75634,1437.1939 C 564.75634,1438.4164 564.3961,1439.562 563.68744,1440.6451 C 562.97169,1441.7223 561.94413,1442.555 560.60358,1443.1455 C 559.26421,1443.7361 557.74295,1444.0278 556.04807,1444.0278 C 553.23587,1444.0278 551.09689,1443.4443 549.62524,1442.2774 C 548.15241,1441.1105 547.21579,1439.3813 546.81304,1437.09 L 546.813,1437.09 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path97" />
|
||||
|
||||
<path
|
||||
d="M 583.894,1436.58 L 587.67825,1437.0454 C 587.08061,1439.2599 585.97746,1440.9749 584.36644,1442.1973 C 582.74833,1443.4127 580.68494,1444.0245 578.17864,1444.0245 C 575.01919,1444.0245 572.51171,1443.0513 570.66447,1441.1072 C 568.81014,1439.1631 567.88652,1436.4336 567.88652,1432.9198 C 567.88652,1429.2808 568.82431,1426.4615 570.69282,1424.4548 C 572.56723,1422.4481 574.99085,1421.4406 577.97668,1421.4406 C 580.86566,1421.4406 583.22668,1422.4269 585.05385,1424.3922 C 586.88692,1426.3576 587.80346,1429.1284 587.80346,1432.6906 C 587.80346,1432.9127 587.79637,1433.2399 587.7822,1433.6698 L 571.672,1433.6698 C 571.80428,1436.045 572.47751,1437.8639 573.68578,1439.1217 C 574.89405,1440.3855 576.39405,1441.0174 578.19995,1441.0174 C 579.53932,1441.0174 580.68499,1440.6631 581.63696,1439.9544 C 582.58775,1439.2529 583.33775,1438.1284 583.89405,1436.58 L 583.894,1436.58 z M 571.8727,1430.6568 L 583.9353,1430.6568 C 583.77585,1428.8438 583.3105,1427.4761 582.55341,1426.5725 C 581.38648,1425.1635 579.87349,1424.4548 578.01916,1424.4548 C 576.33845,1424.4548 574.92113,1425.017 573.77546,1426.1426 C 572.62979,1427.267 571.9979,1428.7741 571.8727,1430.6568 L 571.8727,1430.6568 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path99" />
|
||||
|
||||
<path
|
||||
d="M 602.491,1432.74 C 602.491,1428.7408 603.60242,1425.775 605.83116,1423.8522 C 607.68549,1422.2542 609.94966,1421.4487 612.6225,1421.4487 C 615.59533,1421.4487 618.02486,1422.4219 619.90754,1424.3731 C 621.79612,1426.3172 622.73392,1429.0042 622.73392,1432.4353 C 622.73392,1435.2191 622.31699,1437.4077 621.48313,1438.9975 C 620.65045,1440.5943 619.4351,1441.8309 617.84533,1442.712 C 616.2473,1443.5943 614.51108,1444.0325 612.6225,1444.0325 C 609.60242,1444.0325 607.15754,1443.0664 605.28904,1441.1223 C 603.42172,1439.1853 602.49101,1436.3931 602.49101,1432.74 L 602.491,1432.74 z M 606.25517,1432.74 C 606.25517,1435.5109 606.85871,1437.5813 608.06698,1438.9561 C 609.27525,1440.338 610.79651,1441.0254 612.62249,1441.0254 C 614.44257,1441.0254 615.95556,1440.3309 617.16383,1438.949 C 618.36619,1437.5672 618.96974,1435.4554 618.96974,1432.6231 C 618.96974,1429.949 618.3662,1427.9211 617.15084,1426.5463 C 615.93549,1425.1715 614.4284,1424.4841 612.62249,1424.4841 C 610.79651,1424.4841 609.27525,1425.1715 608.06698,1426.5392 C 606.85871,1427.9069 606.25517,1429.9762 606.25517,1432.74 L 606.25517,1432.74 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path101" />
|
||||
|
||||
<path
|
||||
d="M 627.032,1443.54 L 627.032,1421.9365 L 630.32373,1421.9365 L 630.32373,1425.0062 C 631.91467,1422.631 634.20601,1421.4428 637.19893,1421.4428 C 638.50405,1421.4428 639.69814,1421.679 640.78948,1422.1444 C 641.88672,1422.6168 642.69814,1423.2274 643.24027,1423.9916 C 643.78948,1424.7487 644.16389,1425.6511 644.38594,1426.6928 C 644.51822,1427.3743 644.58791,1428.5613 644.58791,1430.2562 L 644.58791,1443.5401 L 640.92059,1443.5401 L 640.92059,1430.3944 C 640.92059,1428.9086 640.7824,1427.7901 640.49775,1427.0471 C 640.21311,1426.3113 639.70523,1425.7208 638.98358,1425.2838 C 638.25484,1424.8397 637.40681,1424.6164 636.42767,1424.6164 C 634.86507,1424.6164 633.5257,1425.1172 632.38594,1426.1034 C 631.25444,1427.0956 630.69224,1428.9712 630.69224,1431.742 L 630.69224,1443.54 L 627.032,1443.54 L 627.032,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path103" />
|
||||
|
||||
<path
|
||||
d="M 988.517,1440.88 C 987.15519,1442.0328 985.85007,1442.8454 984.60046,1443.3249 C 983.34259,1443.7973 981.99613,1444.0335 980.55873,1444.0335 C 978.18353,1444.0335 976.36464,1443.4572 975.08668,1442.2973 C 973.81581,1441.1375 973.17684,1439.6517 973.17684,1437.8528 C 973.17684,1436.7898 973.41306,1435.8249 973.89849,1434.9497 C 974.37802,1434.0745 975.00991,1433.3741 975.78825,1432.8461 C 976.57251,1432.3182 977.4477,1431.9154 978.42683,1431.645 C 979.1414,1431.4572 980.22565,1431.2694 981.67604,1431.0957 C 984.6347,1430.7414 986.81502,1430.3245 988.21108,1429.832 C 988.22526,1429.3324 988.23234,1429.0123 988.23234,1428.88 C 988.23234,1427.3871 987.8851,1426.3324 987.19061,1425.7276 C 986.2599,1424.895 984.86384,1424.4851 983.02368,1424.4851 C 981.30163,1424.4851 980.03077,1424.7839 979.20399,1425.3875 C 978.38431,1425.9922 977.78076,1427.0611 977.38509,1428.5954 L 973.80871,1428.1028 C 974.1347,1426.5757 974.66974,1425.332 975.41265,1424.3942 C 976.15557,1423.4505 977.23863,1422.7206 978.64887,1422.2139 C 980.05793,1421.7072 981.69021,1421.4497 983.55163,1421.4497 C 985.39887,1421.4497 986.89179,1421.6729 988.04454,1422.1028 C 989.1973,1422.541 990.04415,1423.082 990.59336,1423.7422 C 991.13431,1424.4013 991.5099,1425.228 991.73194,1426.2343 C 991.85005,1426.8603 991.91265,1427.9847 991.91265,1429.6099 L 991.91265,1434.4914 C 991.91265,1437.9013 991.98824,1440.0544 992.14887,1440.9497 C 992.30123,1441.8521 992.61423,1442.7202 993.07249,1443.5469 L 989.24572,1443.5469 C 988.87132,1442.7899 988.62092,1441.9017 988.51698,1440.88 L 988.517,1440.88 z M 988.21109,1432.6997 C 986.87763,1433.2489 984.88511,1433.7072 982.23235,1434.0887 C 980.72526,1434.3036 979.65518,1434.5469 979.03747,1434.8174 C 978.41267,1435.0891 977.92605,1435.4847 977.59298,1436.0127 C 977.25283,1436.5336 977.0792,1437.1099 977.0792,1437.7489 C 977.0792,1438.728 977.45479,1439.5406 978.19062,1440.1926 C 978.92645,1440.8387 980.00952,1441.1647 981.43393,1441.1647 C 982.84299,1441.1647 984.09968,1440.8599 985.19692,1440.241 C 986.29416,1439.6233 987.10676,1438.7765 987.62054,1437.7064 C 988.01621,1436.8808 988.21109,1435.6584 988.21109,1434.0473 L 988.21109,1432.6997 L 988.21109,1432.6997 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path105" />
|
||||
|
||||
<path
|
||||
d="M 1011.61,1443.54 L 1011.61,1440.8105 C 1010.2423,1442.9565 1008.2285,1444.0266 1005.5687,1444.0266 C 1003.8466,1444.0266 1002.2628,1443.5542 1000.8183,1442.6022 C 999.37378,1441.6585 998.25646,1440.3321 997.45803,1438.6231 C 996.66551,1436.9223 996.26984,1434.9711 996.26984,1432.7553 C 996.26984,1430.6022 996.63126,1428.6439 997.34701,1426.8876 C 998.06866,1425.1302 999.14465,1423.7837 1000.5821,1422.853 C 1002.0206,1421.9152 1003.6317,1421.4427 1005.4092,1421.4427 C 1006.7073,1421.4427 1007.8671,1421.7215 1008.8805,1422.2695 C 1009.9021,1422.8187 1010.7277,1423.5333 1011.3667,1424.4156 L 1011.3667,1413.7148 L 1015.0057,1413.7148 L 1015.0057,1443.54 L 1011.61,1443.54 L 1011.61,1443.54 z M 1000.034,1432.7554 C 1000.034,1435.5263 1000.6175,1437.5956 1001.7844,1438.9633 C 1002.9501,1440.3322 1004.3261,1441.0196 1005.9159,1441.0196 C 1007.5127,1441.0196 1008.8746,1440.3593 1009.9919,1439.0542 C 1011.1104,1437.7479 1011.6726,1435.7483 1011.6726,1433.0613 C 1011.6726,1430.1027 1011.1033,1427.9365 1009.9647,1426.5546 C 1008.8249,1425.1656 1007.423,1424.4782 1005.7494,1424.4782 C 1004.1242,1424.4782 1002.7635,1425.1444 1001.6734,1426.4708 C 1000.582,1427.7971 1000.034,1429.8948 1000.034,1432.7554 L 1000.034,1432.7554 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path107" />
|
||||
|
||||
<path
|
||||
d="M 1020.78,1417.93 L 1020.78,1413.7158 L 1024.4461,1413.7158 L 1024.4461,1417.93 L 1020.78,1417.93 z M 1020.78,1443.541 L 1020.78,1421.9375 L 1024.4461,1421.9375 L 1024.4461,1443.541 L 1020.78,1443.541 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path109" />
|
||||
|
||||
<path
|
||||
d="M 1044.81,1436.58 L 1048.5942,1437.0454 C 1047.9966,1439.2599 1046.8935,1440.9749 1045.2824,1442.1973 C 1043.6643,1443.4127 1041.6009,1444.0245 1039.0946,1444.0245 C 1035.9352,1444.0245 1033.4277,1443.0513 1031.5805,1441.1072 C 1029.7261,1439.1631 1028.8025,1436.4336 1028.8025,1432.9198 C 1028.8025,1429.2808 1029.7403,1426.4615 1031.6088,1424.4548 C 1033.4832,1422.4481 1035.9069,1421.4406 1038.8927,1421.4406 C 1041.7817,1421.4406 1044.1427,1422.4269 1045.9699,1424.3922 C 1047.8029,1426.3576 1048.7195,1429.1284 1048.7195,1432.6906 C 1048.7195,1432.9127 1048.7124,1433.2399 1048.6982,1433.6698 L 1032.588,1433.6698 C 1032.7203,1436.045 1033.3935,1437.8639 1034.6018,1439.1217 C 1035.8101,1440.3855 1037.3101,1441.0174 1039.116,1441.0174 C 1040.4553,1441.0174 1041.601,1440.6631 1042.553,1439.9544 C 1043.5037,1439.2529 1044.2538,1438.1284 1044.8101,1436.58 L 1044.81,1436.58 z M 1032.7887,1430.6568 L 1044.8513,1430.6568 C 1044.6919,1428.8438 1044.2265,1427.4761 1043.4694,1426.5725 C 1042.3025,1425.1635 1040.7895,1424.4548 1038.9352,1424.4548 C 1037.2544,1424.4548 1035.8371,1425.017 1034.6915,1426.1426 C 1033.5458,1427.267 1032.9139,1428.7741 1032.7887,1430.6568 L 1032.7887,1430.6568 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path111" />
|
||||
|
||||
<path
|
||||
d="M 1053.19,1443.54 L 1053.19,1421.9365 L 1056.4817,1421.9365 L 1056.4817,1425.0062 C 1058.0727,1422.631 1060.364,1421.4428 1063.3569,1421.4428 C 1064.662,1421.4428 1065.8561,1421.679 1066.9475,1422.1444 C 1068.0447,1422.6168 1068.8561,1423.2274 1069.3983,1423.9916 C 1069.9475,1424.7487 1070.3219,1425.6511 1070.5439,1426.6928 C 1070.6762,1427.3743 1070.7459,1428.5613 1070.7459,1430.2562 L 1070.7459,1443.5401 L 1067.0786,1443.5401 L 1067.0786,1430.3944 C 1067.0786,1428.9086 1066.9404,1427.7901 1066.6558,1427.0471 C 1066.3711,1426.3113 1065.8632,1425.7208 1065.1416,1425.2838 C 1064.4128,1424.8397 1063.5648,1424.6164 1062.5857,1424.6164 C 1061.0231,1424.6164 1059.6837,1425.1172 1058.5439,1426.1034 C 1057.4124,1427.0956 1056.8502,1428.9712 1056.8502,1431.742 L 1056.8502,1443.54 L 1053.19,1443.54 L 1053.19,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path113" />
|
||||
|
||||
<path
|
||||
d="M 1084.36,1440.26 L 1084.8868,1443.4962 C 1083.8592,1443.7112 1082.9356,1443.8222 1082.123,1443.8222 C 1080.7907,1443.8222 1079.762,1443.6143 1079.0261,1443.1903 C 1078.2974,1442.7734 1077.7836,1442.2183 1077.4848,1441.5309 C 1077.186,1440.8505 1077.0336,1439.4061 1077.0336,1437.2116 L 1077.0336,1424.7805 L 1074.3454,1424.7805 L 1074.3454,1421.934 L 1077.0336,1421.934 L 1077.0336,1416.5801 L 1080.6785,1414.3856 L 1080.6785,1421.934 L 1084.36,1421.934 L 1084.36,1424.7805 L 1080.6785,1424.7805 L 1080.6785,1437.4124 C 1080.6785,1438.4612 1080.7411,1439.1285 1080.8663,1439.4262 C 1080.9986,1439.725 1081.2065,1439.9612 1081.4982,1440.1419 C 1081.7899,1440.3155 1082.2068,1440.4053 1082.749,1440.4053 C 1083.1576,1440.4053 1083.6927,1440.3569 1084.36,1440.26 L 1084.36,1440.26 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path115" />
|
||||
|
||||
<polygon
|
||||
points="1098.09,1434.59 1098.09,1430.91 1109.35,1430.91 1109.35,1434.59 1098.09,1434.59 "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="polygon117" />
|
||||
|
||||
<path
|
||||
d="M 1138.98,1443.54 L 1138.98,1440.8105 C 1137.6123,1442.9565 1135.5985,1444.0266 1132.9387,1444.0266 C 1131.2166,1444.0266 1129.6328,1443.5542 1128.1883,1442.6022 C 1126.7438,1441.6585 1125.6265,1440.3321 1124.828,1438.6231 C 1124.0355,1436.9223 1123.6398,1434.9711 1123.6398,1432.7553 C 1123.6398,1430.6022 1124.0013,1428.6439 1124.717,1426.8876 C 1125.4387,1425.1302 1126.5147,1423.7837 1127.9521,1422.853 C 1129.3906,1421.9152 1131.0017,1421.4427 1132.7792,1421.4427 C 1134.0773,1421.4427 1135.2371,1421.7215 1136.2505,1422.2695 C 1137.2721,1422.8187 1138.0977,1423.5333 1138.7367,1424.4156 L 1138.7367,1413.7148 L 1142.3757,1413.7148 L 1142.3757,1443.54 L 1138.98,1443.54 L 1138.98,1443.54 z M 1127.404,1432.7554 C 1127.404,1435.5263 1127.9875,1437.5956 1129.1544,1438.9633 C 1130.3201,1440.3322 1131.6961,1441.0196 1133.2859,1441.0196 C 1134.8827,1441.0196 1136.2445,1440.3593 1137.3619,1439.0542 C 1138.4804,1437.7479 1139.0426,1435.7483 1139.0426,1433.0613 C 1139.0426,1430.1027 1138.4733,1427.9365 1137.3347,1426.5546 C 1136.195,1425.1656 1134.793,1424.4782 1133.1194,1424.4782 C 1131.4942,1424.4782 1130.1335,1425.1444 1129.0434,1426.4708 C 1127.952,1427.7971 1127.404,1429.8948 1127.404,1432.7554 L 1127.404,1432.7554 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path119" />
|
||||
|
||||
<path
|
||||
d="M 1148.16,1417.93 L 1148.16,1413.7158 L 1151.8261,1413.7158 L 1151.8261,1417.93 L 1148.16,1417.93 z M 1148.16,1443.541 L 1148.16,1421.9375 L 1151.8261,1421.9375 L 1151.8261,1443.541 L 1148.16,1443.541 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path121" />
|
||||
|
||||
<path
|
||||
d="M 1158.27,1443.54 L 1158.27,1424.7829 L 1155.0409,1424.7829 L 1155.0409,1421.9364 L 1158.27,1421.9364 L 1158.27,1419.638 C 1158.27,1418.1864 1158.4023,1417.1034 1158.6586,1416.4018 C 1159.0129,1415.4498 1159.6318,1414.6797 1160.52,1414.0892 C 1161.4094,1413.4986 1162.6519,1413.2069 1164.2558,1413.2069 C 1165.2846,1413.2069 1166.4232,1413.325 1167.6728,1413.5754 L 1167.1247,1416.7703 C 1166.3676,1416.6309 1165.6448,1416.5612 1164.9645,1416.5612 C 1163.8531,1416.5612 1163.0688,1416.7975 1162.6106,1417.277 C 1162.1452,1417.7494 1161.9161,1418.6376 1161.9161,1419.9427 L 1161.9161,1421.9364 L 1166.1243,1421.9364 L 1166.1243,1424.7829 L 1161.9161,1424.7829 L 1161.9161,1443.54 L 1158.27,1443.54 L 1158.27,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path123" />
|
||||
|
||||
<path
|
||||
d="M 1169.09,1443.54 L 1169.09,1424.7829 L 1165.8609,1424.7829 L 1165.8609,1421.9364 L 1169.09,1421.9364 L 1169.09,1419.638 C 1169.09,1418.1864 1169.2223,1417.1034 1169.4786,1416.4018 C 1169.8329,1415.4498 1170.4518,1414.6797 1171.34,1414.0892 C 1172.2294,1413.4986 1173.4719,1413.2069 1175.0758,1413.2069 C 1176.1046,1413.2069 1177.2432,1413.325 1178.4928,1413.5754 L 1177.9447,1416.7703 C 1177.1876,1416.6309 1176.4648,1416.5612 1175.7845,1416.5612 C 1174.6731,1416.5612 1173.8888,1416.7975 1173.4306,1417.277 C 1172.9652,1417.7494 1172.7361,1418.6376 1172.7361,1419.9427 L 1172.7361,1421.9364 L 1176.9443,1421.9364 L 1176.9443,1424.7829 L 1172.7361,1424.7829 L 1172.7361,1443.54 L 1169.09,1443.54 L 1169.09,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path125" />
|
||||
|
||||
<path
|
||||
d="M 1194.59,1436.58 L 1198.3742,1437.0454 C 1197.7766,1439.2599 1196.6735,1440.9749 1195.0624,1442.1973 C 1193.4443,1443.4127 1191.3809,1444.0245 1188.8746,1444.0245 C 1185.7152,1444.0245 1183.2077,1443.0513 1181.3605,1441.1072 C 1179.5061,1439.1631 1178.5825,1436.4336 1178.5825,1432.9198 C 1178.5825,1429.2808 1179.5203,1426.4615 1181.3888,1424.4548 C 1183.2632,1422.4481 1185.6869,1421.4406 1188.6727,1421.4406 C 1191.5617,1421.4406 1193.9227,1422.4269 1195.7499,1424.3922 C 1197.5829,1426.3576 1198.4995,1429.1284 1198.4995,1432.6906 C 1198.4995,1432.9127 1198.4924,1433.2399 1198.4782,1433.6698 L 1182.368,1433.6698 C 1182.5003,1436.045 1183.1735,1437.8639 1184.3818,1439.1217 C 1185.5901,1440.3855 1187.0901,1441.0174 1188.896,1441.0174 C 1190.2353,1441.0174 1191.381,1440.6631 1192.333,1439.9544 C 1193.2837,1439.2529 1194.0338,1438.1284 1194.5901,1436.58 L 1194.59,1436.58 z M 1182.5687,1430.6568 L 1194.6313,1430.6568 C 1194.4719,1428.8438 1194.0065,1427.4761 1193.2494,1426.5725 C 1192.0825,1425.1635 1190.5695,1424.4548 1188.7152,1424.4548 C 1187.0344,1424.4548 1185.6171,1425.017 1184.4715,1426.1426 C 1183.3258,1427.267 1182.6939,1428.7741 1182.5687,1430.6568 L 1182.5687,1430.6568 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path127" />
|
||||
|
||||
<path
|
||||
d="M 1202.93,1443.54 L 1202.93,1421.9365 L 1206.2217,1421.9365 L 1206.2217,1425.207 C 1207.0615,1423.6798 1207.8398,1422.6652 1208.5544,1422.1798 C 1209.2631,1421.6932 1210.0473,1421.4428 1210.9024,1421.4428 C 1212.1379,1421.4428 1213.3887,1421.8396 1214.6654,1422.6239 L 1213.4017,1426.0267 C 1212.5135,1425.4916 1211.617,1425.2282 1210.7217,1425.2282 C 1209.9162,1425.2282 1209.2005,1425.4715 1208.5615,1425.9499 C 1207.9225,1426.4365 1207.4713,1427.1026 1207.2009,1427.9566 C 1206.791,1429.2558 1206.5902,1430.679 1206.5902,1432.2274 L 1206.5902,1443.54 L 1202.93,1443.54 L 1202.93,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path129" />
|
||||
|
||||
<path
|
||||
d="M 1231.63,1436.58 L 1235.4143,1437.0454 C 1234.8166,1439.2599 1233.7135,1440.9749 1232.1024,1442.1973 C 1230.4843,1443.4127 1228.4209,1444.0245 1225.9146,1444.0245 C 1222.7552,1444.0245 1220.2477,1443.0513 1218.4005,1441.1072 C 1216.5461,1439.1631 1215.6225,1436.4336 1215.6225,1432.9198 C 1215.6225,1429.2808 1216.5603,1426.4615 1218.4288,1424.4548 C 1220.3032,1422.4481 1222.7269,1421.4406 1225.7127,1421.4406 C 1228.6017,1421.4406 1230.9627,1422.4269 1232.7899,1424.3922 C 1234.6229,1426.3576 1235.5395,1429.1284 1235.5395,1432.6906 C 1235.5395,1432.9127 1235.5324,1433.2399 1235.5182,1433.6698 L 1219.408,1433.6698 C 1219.5403,1436.045 1220.2135,1437.8639 1221.4218,1439.1217 C 1222.6301,1440.3855 1224.1301,1441.0174 1225.936,1441.0174 C 1227.2753,1441.0174 1228.421,1440.6631 1229.373,1439.9544 C 1230.3237,1439.2529 1231.0738,1438.1284 1231.6301,1436.58 L 1231.63,1436.58 z M 1219.6087,1430.6568 L 1231.6713,1430.6568 C 1231.5119,1428.8438 1231.0465,1427.4761 1230.2894,1426.5725 C 1229.1225,1425.1635 1227.6095,1424.4548 1225.7552,1424.4548 C 1224.0744,1424.4548 1222.6571,1425.017 1221.5115,1426.1426 C 1220.3658,1427.267 1219.7339,1428.7741 1219.6087,1430.6568 L 1219.6087,1430.6568 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path131" />
|
||||
|
||||
<path
|
||||
d="M 1240.02,1443.54 L 1240.02,1421.9365 L 1243.3117,1421.9365 L 1243.3117,1425.0062 C 1244.9027,1422.631 1247.194,1421.4428 1250.1869,1421.4428 C 1251.492,1421.4428 1252.6861,1421.679 1253.7775,1422.1444 C 1254.8747,1422.6168 1255.6861,1423.2274 1256.2283,1423.9916 C 1256.7775,1424.7487 1257.1519,1425.6511 1257.3739,1426.6928 C 1257.5062,1427.3743 1257.5759,1428.5613 1257.5759,1430.2562 L 1257.5759,1443.5401 L 1253.9086,1443.5401 L 1253.9086,1430.3944 C 1253.9086,1428.9086 1253.7704,1427.7901 1253.4858,1427.0471 C 1253.2011,1426.3113 1252.6932,1425.7208 1251.9716,1425.2838 C 1251.2428,1424.8397 1250.3948,1424.6164 1249.4157,1424.6164 C 1247.8531,1424.6164 1246.5137,1425.1172 1245.3739,1426.1034 C 1244.2424,1427.0956 1243.6802,1428.9712 1243.6802,1431.742 L 1243.6802,1443.54 L 1240.02,1443.54 L 1240.02,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path133" />
|
||||
|
||||
<path
|
||||
d="M 1271.19,1440.26 L 1271.7168,1443.4962 C 1270.6892,1443.7112 1269.7656,1443.8222 1268.953,1443.8222 C 1267.6207,1443.8222 1266.592,1443.6143 1265.8561,1443.1903 C 1265.1274,1442.7734 1264.6136,1442.2183 1264.3148,1441.5309 C 1264.016,1440.8505 1263.8636,1439.4061 1263.8636,1437.2116 L 1263.8636,1424.7805 L 1261.1754,1424.7805 L 1261.1754,1421.934 L 1263.8636,1421.934 L 1263.8636,1416.5801 L 1267.5085,1414.3856 L 1267.5085,1421.934 L 1271.19,1421.934 L 1271.19,1424.7805 L 1267.5085,1424.7805 L 1267.5085,1437.4124 C 1267.5085,1438.4612 1267.5711,1439.1285 1267.6963,1439.4262 C 1267.8286,1439.725 1268.0365,1439.9612 1268.3282,1440.1419 C 1268.6199,1440.3155 1269.0368,1440.4053 1269.579,1440.4053 C 1269.9876,1440.4053 1270.5227,1440.3569 1271.19,1440.26 L 1271.19,1440.26 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path135" />
|
||||
|
||||
<path
|
||||
d="M 1300.45,1435.63 L 1304.0465,1436.1024 C 1303.6579,1438.5816 1302.6504,1440.5257 1301.0264,1441.9288 C 1299.4083,1443.332 1297.4146,1444.0335 1295.0536,1444.0335 C 1292.1032,1444.0335 1289.7209,1443.0674 1287.9291,1441.1375 C 1286.1303,1439.2064 1285.228,1436.4355 1285.228,1432.8249 C 1285.228,1430.4922 1285.6165,1428.4501 1286.3878,1426.6997 C 1287.165,1424.9505 1288.339,1423.6371 1289.9217,1422.7631 C 1291.4984,1421.8879 1293.2205,1421.4497 1295.0748,1421.4497 C 1297.4217,1421.4497 1299.3457,1422.0473 1300.8315,1423.2343 C 1302.3244,1424.4225 1303.2835,1426.1032 1303.7063,1428.2906 L 1300.1441,1428.8387 C 1299.8039,1427.3871 1299.2063,1426.2969 1298.3453,1425.5611 C 1297.4843,1424.8324 1296.4425,1424.4639 1295.2201,1424.4639 C 1293.3728,1424.4639 1291.8728,1425.1241 1290.7201,1426.4505 C 1289.5673,1427.7698 1288.991,1429.8603 1288.991,1432.7209 C 1288.991,1435.6229 1289.5472,1437.7347 1290.6646,1439.054 C 1291.776,1440.3662 1293.2276,1441.0265 1295.0193,1441.0265 C 1296.4567,1441.0265 1297.6508,1440.5812 1298.6158,1439.7001 C 1299.5819,1438.8178 1300.1925,1437.4642 1300.45,1435.63 L 1300.45,1435.63 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path137" />
|
||||
|
||||
<path
|
||||
d="M 1321.34,1443.54 L 1321.34,1440.3664 C 1319.6522,1442.8113 1317.3679,1444.0266 1314.479,1444.0266 C 1313.2081,1444.0266 1312.0128,1443.7833 1310.9097,1443.2967 C 1309.8054,1442.8113 1308.9857,1442.1924 1308.4506,1441.4565 C 1307.9097,1440.7136 1307.5341,1439.8113 1307.3191,1438.7412 C 1307.1727,1438.0195 1307.0971,1436.8809 1307.0971,1435.3184 L 1307.0971,1421.9365 L 1310.7561,1421.9365 L 1310.7561,1433.9152 C 1310.7561,1435.8321 1310.8329,1437.1159 1310.9782,1437.7833 C 1311.2144,1438.7482 1311.701,1439.4982 1312.4439,1440.0533 C 1313.1939,1440.6026 1314.1176,1440.873 1315.2148,1440.873 C 1316.3121,1440.873 1317.3396,1440.5955 1318.3046,1440.0333 C 1319.2695,1439.4711 1319.951,1438.6998 1320.3467,1437.7348 C 1320.7495,1436.7628 1320.9502,1435.3526 1320.9502,1433.5124 L 1320.9502,1421.9364 L 1324.6105,1421.9364 L 1324.6105,1443.5399 L 1321.34,1443.5399 L 1321.34,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path139" />
|
||||
|
||||
<path
|
||||
d="M 1330.31,1443.54 L 1330.31,1421.9365 L 1333.6017,1421.9365 L 1333.6017,1425.207 C 1334.4415,1423.6798 1335.2198,1422.6652 1335.9344,1422.1798 C 1336.6431,1421.6932 1337.4273,1421.4428 1338.2824,1421.4428 C 1339.5179,1421.4428 1340.7687,1421.8396 1342.0454,1422.6239 L 1340.7816,1426.0267 C 1339.8935,1425.4916 1338.997,1425.2282 1338.1017,1425.2282 C 1337.2962,1425.2282 1336.5805,1425.4715 1335.9415,1425.9499 C 1335.3025,1426.4365 1334.8513,1427.1026 1334.5809,1427.9566 C 1334.171,1429.2558 1333.9702,1430.679 1333.9702,1432.2274 L 1333.9702,1443.54 L 1330.31,1443.54 L 1330.31,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path141" />
|
||||
|
||||
<path
|
||||
d="M 1350.23,1443.54 L 1342.0084,1421.9365 L 1345.8765,1421.9365 L 1350.5146,1434.8731 C 1351.0154,1436.2692 1351.4737,1437.7207 1351.8965,1439.2278 C 1352.2237,1438.0892 1352.6749,1436.7203 1353.2584,1435.1164 L 1358.0631,1421.9365 L 1361.8272,1421.9365 L 1353.6469,1443.54 L 1350.23,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path143" />
|
||||
|
||||
<path
|
||||
d="M 1379.85,1436.58 L 1383.6342,1437.0454 C 1383.0366,1439.2599 1381.9335,1440.9749 1380.3224,1442.1973 C 1378.7043,1443.4127 1376.6409,1444.0245 1374.1346,1444.0245 C 1370.9752,1444.0245 1368.4677,1443.0513 1366.6205,1441.1072 C 1364.7661,1439.1631 1363.8425,1436.4336 1363.8425,1432.9198 C 1363.8425,1429.2808 1364.7803,1426.4615 1366.6488,1424.4548 C 1368.5232,1422.4481 1370.9469,1421.4406 1373.9327,1421.4406 C 1376.8217,1421.4406 1379.1827,1422.4269 1381.0099,1424.3922 C 1382.8429,1426.3576 1383.7595,1429.1284 1383.7595,1432.6906 C 1383.7595,1432.9127 1383.7524,1433.2399 1383.7382,1433.6698 L 1367.628,1433.6698 C 1367.7603,1436.045 1368.4335,1437.8639 1369.6418,1439.1217 C 1370.8501,1440.3855 1372.3501,1441.0174 1374.156,1441.0174 C 1375.4953,1441.0174 1376.641,1440.6631 1377.593,1439.9544 C 1378.5437,1439.2529 1379.2938,1438.1284 1379.8501,1436.58 L 1379.85,1436.58 z M 1367.8287,1430.6568 L 1379.8913,1430.6568 C 1379.7319,1428.8438 1379.2665,1427.4761 1378.5094,1426.5725 C 1377.3425,1425.1635 1375.8295,1424.4548 1373.9752,1424.4548 C 1372.2944,1424.4548 1370.8771,1425.017 1369.7315,1426.1426 C 1368.5858,1427.267 1367.9539,1428.7741 1367.8287,1430.6568 L 1367.8287,1430.6568 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path145" />
|
||||
|
||||
<path
|
||||
d="M 1386.77,1437.09 L 1390.3877,1436.5207 C 1390.5885,1437.9723 1391.159,1439.0825 1392.0885,1439.8609 C 1393.0121,1440.6309 1394.3113,1441.0207 1395.985,1441.0207 C 1397.6657,1441.0207 1398.9153,1440.6735 1399.7279,1439.9931 C 1400.5405,1439.3057 1400.9503,1438.4991 1400.9503,1437.5825 C 1400.9503,1436.7498 1400.5889,1436.1038 1399.8661,1435.6242 C 1399.3665,1435.2983 1398.1169,1434.8884 1396.1232,1434.3888 C 1393.4432,1433.7085 1391.5747,1433.125 1390.5401,1432.6242 C 1389.5054,1432.1317 1388.7141,1431.4443 1388.1791,1430.5691 C 1387.6452,1429.6939 1387.3736,1428.729 1387.3736,1427.6731 C 1387.3736,1426.7081 1387.5956,1425.8199 1388.0409,1425.0002 C 1388.4779,1424.1735 1389.0826,1423.4931 1389.8385,1422.951 C 1390.409,1422.5353 1391.1862,1422.1739 1392.1653,1421.8821 C 1393.1515,1421.5904 1394.2074,1421.4439 1395.3318,1421.4439 C 1397.0267,1421.4439 1398.5125,1421.6943 1399.7976,1422.1809 C 1401.0814,1422.6664 1402.0263,1423.3266 1402.637,1424.1593 C 1403.2488,1425.0002 1403.6657,1426.1105 1403.8948,1427.5065 L 1400.3184,1428.0002 C 1400.1519,1426.8888 1399.6795,1426.0207 1398.9011,1425.3959 C 1398.124,1424.7711 1397.0196,1424.4581 1395.5964,1424.4581 C 1393.9157,1424.4581 1392.7145,1424.7357 1391.9988,1425.292 C 1391.2771,1425.8471 1390.9157,1426.5002 1390.9157,1427.2432 C 1390.9157,1427.7215 1391.0681,1428.1455 1391.3669,1428.5282 C 1391.6657,1428.9239 1392.131,1429.2428 1392.77,1429.5073 C 1393.1373,1429.6384 1394.2145,1429.9514 1396.0051,1430.4369 C 1398.5952,1431.1313 1400.4011,1431.6947 1401.4216,1432.1388 C 1402.4503,1432.5758 1403.2559,1433.2219 1403.8393,1434.0617 C 1404.4216,1434.9026 1404.7133,1435.9443 1404.7133,1437.1939 C 1404.7133,1438.4164 1404.3531,1439.562 1403.6444,1440.6451 C 1402.9287,1441.7223 1401.9011,1442.555 1400.5606,1443.1455 C 1399.2212,1443.7361 1397.6999,1444.0278 1396.0051,1444.0278 C 1393.1929,1444.0278 1391.0539,1443.4443 1389.5822,1442.2774 C 1388.1094,1441.1105 1387.1728,1439.3813 1386.77,1437.09 L 1386.77,1437.09 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path147" />
|
||||
|
||||
<path
|
||||
d="M 1410.02,1443.54 L 1410.02,1439.366 L 1414.1928,1439.366 L 1414.1928,1443.54 C 1414.1928,1445.0742 1413.9224,1446.3109 1413.3802,1447.2558 C 1412.8322,1448.1924 1411.9712,1448.9223 1410.7972,1449.4432 L 1409.7767,1447.8735 C 1410.548,1447.5333 1411.1172,1447.0325 1411.4846,1446.3806 C 1411.8531,1445.7203 1412.0539,1444.7766 1412.0964,1443.54 L 1410.02,1443.54 L 1410.02,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path149" />
|
||||
|
||||
<path
|
||||
d="M 1430.75,1437.09 L 1434.3677,1436.5207 C 1434.5685,1437.9723 1435.139,1439.0825 1436.0685,1439.8609 C 1436.9921,1440.6309 1438.2913,1441.0207 1439.965,1441.0207 C 1441.6457,1441.0207 1442.8953,1440.6735 1443.7079,1439.9931 C 1444.5205,1439.3057 1444.9303,1438.4991 1444.9303,1437.5825 C 1444.9303,1436.7498 1444.5689,1436.1038 1443.8461,1435.6242 C 1443.3465,1435.2983 1442.0969,1434.8884 1440.1032,1434.3888 C 1437.4232,1433.7085 1435.5547,1433.125 1434.5201,1432.6242 C 1433.4854,1432.1317 1432.6941,1431.4443 1432.1591,1430.5691 C 1431.6252,1429.6939 1431.3536,1428.729 1431.3536,1427.6731 C 1431.3536,1426.7081 1431.5756,1425.8199 1432.0209,1425.0002 C 1432.4579,1424.1735 1433.0626,1423.4931 1433.8185,1422.951 C 1434.389,1422.5353 1435.1662,1422.1739 1436.1453,1421.8821 C 1437.1315,1421.5904 1438.1874,1421.4439 1439.3118,1421.4439 C 1441.0067,1421.4439 1442.4925,1421.6943 1443.7776,1422.1809 C 1445.0614,1422.6664 1446.0063,1423.3266 1446.617,1424.1593 C 1447.2288,1425.0002 1447.6457,1426.1105 1447.8748,1427.5065 L 1444.2984,1428.0002 C 1444.1319,1426.8888 1443.6595,1426.0207 1442.8811,1425.3959 C 1442.104,1424.7711 1440.9996,1424.4581 1439.5764,1424.4581 C 1437.8957,1424.4581 1436.6945,1424.7357 1435.9788,1425.292 C 1435.2571,1425.8471 1434.8957,1426.5002 1434.8957,1427.2432 C 1434.8957,1427.7215 1435.0481,1428.1455 1435.3469,1428.5282 C 1435.6457,1428.9239 1436.111,1429.2428 1436.75,1429.5073 C 1437.1173,1429.6384 1438.1945,1429.9514 1439.9851,1430.4369 C 1442.5752,1431.1313 1444.3811,1431.6947 1445.4016,1432.1388 C 1446.4303,1432.5758 1447.2359,1433.2219 1447.8193,1434.0617 C 1448.4016,1434.9026 1448.6933,1435.9443 1448.6933,1437.1939 C 1448.6933,1438.4164 1448.3331,1439.562 1447.6244,1440.6451 C 1446.9087,1441.7223 1445.8811,1442.555 1444.5406,1443.1455 C 1443.2012,1443.7361 1441.6799,1444.0278 1439.9851,1444.0278 C 1437.1729,1444.0278 1435.0339,1443.4443 1433.5622,1442.2774 C 1432.0894,1441.1105 1431.1528,1439.3813 1430.75,1437.09 L 1430.75,1437.09 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path151" />
|
||||
|
||||
<path
|
||||
d="M 1453.05,1451.82 L 1453.05,1421.9393 L 1456.3831,1421.9393 L 1456.3831,1424.7444 C 1457.1685,1423.6472 1458.0567,1422.8216 1459.05,1422.2724 C 1460.0362,1421.7243 1461.2374,1421.4456 1462.6476,1421.4456 C 1464.4949,1421.4456 1466.1201,1421.9251 1467.5291,1422.87 C 1468.9453,1423.8208 1470.0083,1425.1613 1470.724,1426.8905 C 1471.4457,1428.6196 1471.8071,1430.5153 1471.8071,1432.5775 C 1471.8071,1434.7861 1471.4114,1436.7787 1470.613,1438.5503 C 1469.8205,1440.3208 1468.6677,1441.6743 1467.1547,1442.6192 C 1465.6406,1443.557 1464.0496,1444.0295 1462.3831,1444.0295 C 1461.1618,1444.0295 1460.0705,1443.772 1459.0984,1443.2582 C 1458.1264,1442.7444 1457.335,1442.0913 1456.7102,1441.307 L 1456.7102,1451.82 L 1453.05,1451.82 L 1453.05,1451.82 z M 1456.363,1432.8621 C 1456.363,1435.64 1456.9252,1437.6952 1458.0508,1439.0286 C 1459.1752,1440.355 1460.5429,1441.0223 1462.1409,1441.0223 C 1463.765,1441.0223 1465.161,1440.3349 1466.3209,1438.953 C 1467.4807,1437.5782 1468.0642,1435.4464 1468.0642,1432.5574 C 1468.0642,1429.7995 1467.4949,1427.7444 1466.3622,1426.3696 C 1465.2307,1425.0019 1463.876,1424.3145 1462.3075,1424.3145 C 1460.7449,1424.3145 1459.363,1425.0432 1458.1618,1426.5019 C 1456.9595,1427.9593 1456.363,1430.0853 1456.363,1432.8621 L 1456.363,1432.8621 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path153" />
|
||||
|
||||
<path
|
||||
d="M 1490.32,1440.88 C 1488.9582,1442.0328 1487.6531,1442.8454 1486.4035,1443.3249 C 1485.1456,1443.7973 1483.7991,1444.0335 1482.3617,1444.0335 C 1479.9865,1444.0335 1478.1676,1443.4572 1476.8897,1442.2973 C 1475.6188,1441.1375 1474.9798,1439.6517 1474.9798,1437.8528 C 1474.9798,1436.7898 1475.2161,1435.8249 1475.7015,1434.9497 C 1476.181,1434.0745 1476.8129,1433.3741 1477.5913,1432.8461 C 1478.3755,1432.3182 1479.2507,1431.9154 1480.2298,1431.645 C 1480.9444,1431.4572 1482.0287,1431.2694 1483.479,1431.0957 C 1486.4377,1430.7414 1488.618,1430.3245 1490.0141,1429.832 C 1490.0283,1429.3324 1490.0353,1429.0123 1490.0353,1428.88 C 1490.0353,1427.3871 1489.6881,1426.3324 1488.9936,1425.7276 C 1488.0629,1424.895 1486.6668,1424.4851 1484.8267,1424.4851 C 1483.1046,1424.4851 1481.8338,1424.7839 1481.007,1425.3875 C 1480.1873,1425.9922 1479.5838,1427.0611 1479.1881,1428.5954 L 1475.6117,1428.1028 C 1475.9377,1426.5757 1476.4727,1425.332 1477.2157,1424.3942 C 1477.9586,1423.4505 1479.0416,1422.7206 1480.4519,1422.2139 C 1481.8609,1421.7072 1483.4932,1421.4497 1485.3546,1421.4497 C 1487.2019,1421.4497 1488.6948,1421.6729 1489.8475,1422.1028 C 1491.0003,1422.541 1491.8472,1423.082 1492.3964,1423.7422 C 1492.9373,1424.4013 1493.3129,1425.228 1493.5349,1426.2343 C 1493.6531,1426.8603 1493.7157,1427.9847 1493.7157,1429.6099 L 1493.7157,1434.4914 C 1493.7157,1437.9013 1493.7912,1440.0544 1493.9519,1440.9497 C 1494.1042,1441.8521 1494.4172,1442.7202 1494.8755,1443.5469 L 1491.0487,1443.5469 C 1490.6743,1442.7899 1490.4239,1441.9017 1490.32,1440.88 L 1490.32,1440.88 z M 1490.0141,1432.6997 C 1488.6806,1433.2489 1486.6881,1433.7072 1484.0354,1434.0887 C 1482.5283,1434.3036 1481.4582,1434.5469 1480.8405,1434.8174 C 1480.2157,1435.0891 1479.7291,1435.4847 1479.396,1436.0127 C 1479.0558,1436.5336 1478.8822,1437.1099 1478.8822,1437.7489 C 1478.8822,1438.728 1479.2578,1439.5406 1479.9936,1440.1926 C 1480.7295,1440.8387 1481.8125,1441.1647 1483.2369,1441.1647 C 1484.646,1441.1647 1485.9027,1440.8599 1486.9999,1440.241 C 1488.0972,1439.6233 1488.9098,1438.7765 1489.4235,1437.7064 C 1489.8192,1436.8808 1490.0141,1435.6584 1490.0141,1434.0473 L 1490.0141,1432.6997 L 1490.0141,1432.6997 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path155" />
|
||||
|
||||
<path
|
||||
d="M 1513.49,1435.63 L 1517.0865,1436.1024 C 1516.6979,1438.5816 1515.6904,1440.5257 1514.0664,1441.9288 C 1512.4483,1443.332 1510.4546,1444.0335 1508.0936,1444.0335 C 1505.1432,1444.0335 1502.7609,1443.0674 1500.9691,1441.1375 C 1499.1703,1439.2064 1498.268,1436.4355 1498.268,1432.8249 C 1498.268,1430.4922 1498.6565,1428.4501 1499.4278,1426.6997 C 1500.205,1424.9505 1501.379,1423.6371 1502.9617,1422.7631 C 1504.5384,1421.8879 1506.2605,1421.4497 1508.1148,1421.4497 C 1510.4617,1421.4497 1512.3857,1422.0473 1513.8715,1423.2343 C 1515.3644,1424.4225 1516.3235,1426.1032 1516.7463,1428.2906 L 1513.1841,1428.8387 C 1512.8439,1427.3871 1512.2463,1426.2969 1511.3853,1425.5611 C 1510.5243,1424.8324 1509.4825,1424.4639 1508.2601,1424.4639 C 1506.4128,1424.4639 1504.9128,1425.1241 1503.7601,1426.4505 C 1502.6073,1427.7698 1502.031,1429.8603 1502.031,1432.7209 C 1502.031,1435.6229 1502.5872,1437.7347 1503.7046,1439.054 C 1504.816,1440.3662 1506.2676,1441.0265 1508.0593,1441.0265 C 1509.4967,1441.0265 1510.6908,1440.5812 1511.6558,1439.7001 C 1512.6219,1438.8178 1513.2325,1437.4642 1513.49,1435.63 L 1513.49,1435.63 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path157" />
|
||||
|
||||
<path
|
||||
d="M 1520.24,1417.93 L 1520.24,1413.7158 L 1523.9061,1413.7158 L 1523.9061,1417.93 L 1520.24,1417.93 z M 1520.24,1443.541 L 1520.24,1421.9375 L 1523.9061,1421.9375 L 1523.9061,1443.541 L 1520.24,1443.541 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path159" />
|
||||
|
||||
<path
|
||||
d="M 1529.49,1443.54 L 1529.49,1421.9365 L 1532.7817,1421.9365 L 1532.7817,1425.0062 C 1534.3727,1422.631 1536.664,1421.4428 1539.6569,1421.4428 C 1540.962,1421.4428 1542.1561,1421.679 1543.2475,1422.1444 C 1544.3447,1422.6168 1545.1561,1423.2274 1545.6983,1423.9916 C 1546.2475,1424.7487 1546.6219,1425.6511 1546.8439,1426.6928 C 1546.9762,1427.3743 1547.0459,1428.5613 1547.0459,1430.2562 L 1547.0459,1443.5401 L 1543.3786,1443.5401 L 1543.3786,1430.3944 C 1543.3786,1428.9086 1543.2404,1427.7901 1542.9558,1427.0471 C 1542.6711,1426.3113 1542.1632,1425.7208 1541.4416,1425.2838 C 1540.7128,1424.8397 1539.8648,1424.6164 1538.8857,1424.6164 C 1537.3231,1424.6164 1535.9837,1425.1172 1534.8439,1426.1034 C 1533.7124,1427.0956 1533.1502,1428.9712 1533.1502,1431.742 L 1533.1502,1443.54 L 1529.49,1443.54 L 1529.49,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path161" />
|
||||
|
||||
<path
|
||||
d="M 1551.99,1445.33 L 1555.5522,1445.858 C 1555.6987,1446.9552 1556.1144,1447.7536 1556.7888,1448.2603 C 1557.6983,1448.9335 1558.9408,1449.2737 1560.5105,1449.2737 C 1562.2124,1449.2737 1563.5176,1448.9335 1564.4412,1448.2603 C 1565.3648,1447.58 1565.9825,1446.628 1566.3085,1445.4127 C 1566.5034,1444.6627 1566.5872,1443.1013 1566.5731,1440.7119 C 1564.9762,1442.5934 1562.9825,1443.5383 1560.5943,1443.5383 C 1557.6215,1443.5383 1555.3231,1442.4694 1553.6979,1440.3233 C 1552.0738,1438.1843 1551.2542,1435.6083 1551.2542,1432.6154 C 1551.2542,1430.552 1551.6286,1428.6493 1552.3715,1426.9072 C 1553.1215,1425.1639 1554.2057,1423.8162 1555.6219,1422.8654 C 1557.038,1421.9206 1558.7045,1421.441 1560.6144,1421.441 C 1563.1632,1421.441 1565.2679,1422.4757 1566.9203,1424.5391 L 1566.9203,1421.9347 L 1570.3018,1421.9347 L 1570.3018,1440.6079 C 1570.3018,1443.9693 1569.9546,1446.3575 1569.2742,1447.7607 C 1568.5868,1449.1627 1567.5038,1450.2741 1566.0179,1451.0867 C 1564.5309,1451.8993 1562.7049,1452.3091 1560.5317,1452.3091 C 1557.9545,1452.3091 1555.8723,1451.7256 1554.2884,1450.5658 C 1552.6986,1449.406 1551.9345,1447.6626 1551.99,1445.33 L 1551.99,1445.33 z M 1555.0172,1432.3509 C 1555.0172,1435.1844 1555.5806,1437.2537 1556.7121,1438.5529 C 1557.8376,1439.858 1559.2467,1440.5041 1560.9416,1440.5041 C 1562.6211,1440.5041 1564.0313,1439.858 1565.1699,1438.5659 C 1566.3085,1437.2678 1566.879,1435.2399 1566.879,1432.469 C 1566.879,1429.8233 1566.2955,1427.8308 1565.1215,1426.4903 C 1563.9475,1425.1497 1562.5314,1424.4765 1560.879,1424.4765 C 1559.2538,1424.4765 1557.8719,1425.1355 1556.7262,1426.4619 C 1555.5877,1427.7812 1555.0172,1429.7466 1555.0172,1432.3509 L 1555.0172,1432.3509 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path163" />
|
||||
|
||||
<path
|
||||
d="M 1576.78,1443.54 L 1576.78,1439.366 L 1580.9528,1439.366 L 1580.9528,1443.54 C 1580.9528,1445.0742 1580.6824,1446.3109 1580.1402,1447.2558 C 1579.5922,1448.1924 1578.7312,1448.9223 1577.5572,1449.4432 L 1576.5367,1447.8735 C 1577.308,1447.5333 1577.8772,1447.0325 1578.2446,1446.3806 C 1578.6131,1445.7203 1578.8139,1444.7766 1578.8564,1443.54 L 1576.78,1443.54 L 1576.78,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path165" />
|
||||
|
||||
<path
|
||||
d="M 669.775,1440.26 L 670.30177,1443.4962 C 669.27421,1443.7112 668.35059,1443.8222 667.53799,1443.8222 C 666.20571,1443.8222 665.17697,1443.6143 664.44114,1443.1903 C 663.7124,1442.7734 663.19862,1442.2183 662.8998,1441.5309 C 662.60098,1440.8505 662.44862,1439.4061 662.44862,1437.2116 L 662.44862,1424.7805 L 659.76043,1424.7805 L 659.76043,1421.934 L 662.44862,1421.934 L 662.44862,1416.5801 L 666.0935,1414.3856 L 666.0935,1421.934 L 669.775,1421.934 L 669.775,1424.7805 L 666.0935,1424.7805 L 666.0935,1437.4124 C 666.0935,1438.4612 666.1561,1439.1285 666.2813,1439.4262 C 666.41358,1439.725 666.62145,1439.9612 666.91319,1440.1419 C 667.20492,1440.3155 667.62185,1440.4053 668.16398,1440.4053 C 668.57264,1440.4053 669.10768,1440.3569 669.775,1440.26 L 669.775,1440.26 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path167" />
|
||||
|
||||
<path
|
||||
d="M 673.357,1443.54 L 673.357,1413.7148 L 677.01724,1413.7148 L 677.01724,1424.4156 C 678.72511,1422.4361 680.88535,1421.4428 683.4885,1421.4428 C 685.08653,1421.4428 686.47551,1421.7628 687.65543,1422.3947 C 688.83653,1423.0195 689.68338,1423.8947 690.19008,1425.0062 C 690.69677,1426.1164 690.95425,1427.7345 690.95425,1429.8463 L 690.95425,1443.54 L 687.28811,1443.54 L 687.28811,1429.8463 C 687.28811,1428.0191 686.89126,1426.6857 686.09992,1425.853 C 685.30858,1425.0192 684.18299,1424.5963 682.7326,1424.5963 C 681.64835,1424.5963 680.62788,1424.881 679.67,1425.4432 C 678.71095,1426.0054 678.03063,1426.7695 677.62787,1427.7345 C 677.21803,1428.6936 677.01724,1430.0258 677.01724,1431.7207 L 677.01724,1443.54 L 673.357,1443.54 L 673.357,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path169" />
|
||||
|
||||
<path
|
||||
d="M 711.315,1436.58 L 715.09925,1437.0454 C 714.50161,1439.2599 713.39846,1440.9749 711.78744,1442.1973 C 710.16933,1443.4127 708.10594,1444.0245 705.59964,1444.0245 C 702.44019,1444.0245 699.93271,1443.0513 698.08547,1441.1072 C 696.23114,1439.1631 695.30752,1436.4336 695.30752,1432.9198 C 695.30752,1429.2808 696.24532,1426.4615 698.11382,1424.4548 C 699.98823,1422.4481 702.41185,1421.4406 705.39768,1421.4406 C 708.28666,1421.4406 710.64768,1422.4269 712.47485,1424.3922 C 714.30792,1426.3576 715.22446,1429.1284 715.22446,1432.6906 C 715.22446,1432.9127 715.21737,1433.2399 715.2032,1433.6698 L 699.093,1433.6698 C 699.22528,1436.045 699.89851,1437.8639 701.10678,1439.1217 C 702.31505,1440.3855 703.81505,1441.0174 705.62095,1441.0174 C 706.96032,1441.0174 708.10599,1440.6631 709.05796,1439.9544 C 710.00875,1439.2529 710.75875,1438.1284 711.31505,1436.58 L 711.315,1436.58 z M 699.2937,1430.6568 L 711.3563,1430.6568 C 711.19685,1428.8438 710.7315,1427.4761 709.97441,1426.5725 C 708.80748,1425.1635 707.29449,1424.4548 705.44016,1424.4548 C 703.75945,1424.4548 702.34213,1425.017 701.19646,1426.1426 C 700.05079,1427.267 699.4189,1428.7741 699.2937,1430.6568 L 699.2937,1430.6568 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path171" />
|
||||
|
||||
<path
|
||||
d="M 735.266,1443.54 L 728.65537,1421.9365 L 732.43962,1421.9365 L 735.87781,1434.4078 L 737.15458,1439.0472 C 737.21009,1438.811 737.58568,1437.3251 738.27308,1434.5885 L 741.71009,1421.9365 L 745.47426,1421.9365 L 748.71048,1434.4633 L 749.79355,1438.596 L 751.03016,1434.422 L 754.73055,1421.9366 L 758.29394,1421.9366 L 751.53685,1443.5401 L 747.73842,1443.5401 L 744.30023,1430.6023 L 743.46047,1426.9149 L 739.09275,1443.5401 L 735.26598,1443.5401 L 735.266,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path173" />
|
||||
|
||||
<path
|
||||
d="M 776.154,1436.58 L 779.93825,1437.0454 C 779.34061,1439.2599 778.23746,1440.9749 776.62644,1442.1973 C 775.00833,1443.4127 772.94494,1444.0245 770.43864,1444.0245 C 767.27919,1444.0245 764.77171,1443.0513 762.92447,1441.1072 C 761.07014,1439.1631 760.14652,1436.4336 760.14652,1432.9198 C 760.14652,1429.2808 761.08431,1426.4615 762.95282,1424.4548 C 764.82723,1422.4481 767.25085,1421.4406 770.23668,1421.4406 C 773.12566,1421.4406 775.48668,1422.4269 777.31385,1424.3922 C 779.14692,1426.3576 780.06346,1429.1284 780.06346,1432.6906 C 780.06346,1432.9127 780.05637,1433.2399 780.0422,1433.6698 L 763.932,1433.6698 C 764.06428,1436.045 764.73751,1437.8639 765.94578,1439.1217 C 767.15405,1440.3855 768.65405,1441.0174 770.45995,1441.0174 C 771.79932,1441.0174 772.94499,1440.6631 773.89696,1439.9544 C 774.84775,1439.2529 775.59775,1438.1284 776.15405,1436.58 L 776.154,1436.58 z M 764.1327,1430.6568 L 776.1953,1430.6568 C 776.03585,1428.8438 775.5705,1427.4761 774.81341,1426.5725 C 773.64648,1425.1635 772.13349,1424.4548 770.27916,1424.4548 C 768.59845,1424.4548 767.18113,1425.017 766.03546,1426.1426 C 764.88979,1427.267 764.2579,1428.7741 764.1327,1430.6568 L 764.1327,1430.6568 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path175" />
|
||||
|
||||
<path
|
||||
d="M 787.918,1443.54 L 784.52233,1443.54 L 784.52233,1413.7148 L 788.18139,1413.7148 L 788.18139,1424.353 C 789.72982,1422.416 791.70226,1421.4428 794.09753,1421.4428 C 795.43099,1421.4428 796.68887,1421.7144 797.87588,1422.2483 C 799.06289,1422.7833 800.03494,1423.5404 800.80619,1424.5054 C 801.57036,1425.4774 802.17391,1426.6443 802.60501,1428.0191 C 803.04202,1429.388 803.25816,1430.8526 803.25816,1432.4081 C 803.25816,1436.1168 802.34044,1438.9774 800.50737,1440.9983 C 798.68139,1443.0192 796.47981,1444.0266 793.918,1444.0266 C 791.36918,1444.0266 789.36957,1442.9636 787.918,1440.8318 L 787.918,1443.54 L 787.918,1443.54 z M 787.87548,1432.5746 C 787.87548,1435.1648 788.22981,1437.0333 788.93139,1438.186 C 790.08415,1440.0746 791.64674,1441.0195 793.6121,1441.0195 C 795.21604,1441.0195 796.59793,1440.325 797.76486,1438.9289 C 798.93179,1437.54 799.51407,1435.4707 799.51407,1432.714 C 799.51407,1429.8947 798.95187,1427.8112 797.83454,1426.4707 C 796.71604,1425.1301 795.36249,1424.4569 793.77863,1424.4569 C 792.17469,1424.4569 790.7928,1425.1514 789.62587,1426.5403 C 788.45894,1427.9293 787.87548,1429.9431 787.87548,1432.5746 L 787.87548,1432.5746 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path177" />
|
||||
|
||||
<path
|
||||
d="M 817.827,1437.09 L 821.44472,1436.5207 C 821.64551,1437.9723 822.21598,1439.0825 823.14551,1439.8609 C 824.06913,1440.6309 825.36834,1441.0207 827.04197,1441.0207 C 828.72268,1441.0207 829.97228,1440.6735 830.78488,1439.9931 C 831.59748,1439.3057 832.00732,1438.4991 832.00732,1437.5825 C 832.00732,1436.7498 831.6459,1436.1038 830.92307,1435.6242 C 830.42346,1435.2983 829.17386,1434.8884 827.18016,1434.3888 C 824.50024,1433.7085 822.63173,1433.125 821.59709,1432.6242 C 820.56244,1432.1317 819.77111,1431.4443 819.23607,1430.5691 C 818.70221,1429.6939 818.43056,1428.729 818.43056,1427.6731 C 818.43056,1426.7081 818.6526,1425.8199 819.09788,1425.0002 C 819.53489,1424.1735 820.13961,1423.4931 820.89552,1422.951 C 821.46599,1422.5353 822.24316,1422.1739 823.22229,1421.8821 C 824.20851,1421.5904 825.26442,1421.4439 826.38883,1421.4439 C 828.08371,1421.4439 829.56954,1421.6943 830.85458,1422.1809 C 832.13844,1422.6664 833.08332,1423.3266 833.69395,1424.1593 C 834.30576,1425.0002 834.72269,1426.1105 834.95182,1427.5065 L 831.37544,1428.0002 C 831.20891,1426.8888 830.73647,1426.0207 829.95812,1425.3959 C 829.18096,1424.7711 828.07662,1424.4581 826.6534,1424.4581 C 824.97269,1424.4581 823.77151,1424.7357 823.05576,1425.292 C 822.33411,1425.8471 821.97269,1426.5002 821.97269,1427.2432 C 821.97269,1427.7215 822.12505,1428.1455 822.42387,1428.5282 C 822.72269,1428.9239 823.18805,1429.2428 823.82702,1429.5073 C 824.19435,1429.6384 825.27151,1429.9514 827.06206,1430.4369 C 829.65222,1431.1313 831.45812,1431.6947 832.4786,1432.1388 C 833.50734,1432.5758 834.31285,1433.2219 834.89632,1434.0617 C 835.47861,1434.9026 835.77034,1435.9443 835.77034,1437.1939 C 835.77034,1438.4164 835.4101,1439.562 834.70144,1440.6451 C 833.98569,1441.7223 832.95813,1442.555 831.61758,1443.1455 C 830.27821,1443.7361 828.75695,1444.0278 827.06207,1444.0278 C 824.24987,1444.0278 822.11089,1443.4443 820.63924,1442.2774 C 819.16641,1441.1105 818.22979,1439.3813 817.82704,1437.09 L 817.827,1437.09 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path179" />
|
||||
|
||||
<path
|
||||
d="M 840.138,1417.93 L 840.138,1413.7158 L 843.80414,1413.7158 L 843.80414,1417.93 L 840.138,1417.93 z M 840.138,1443.541 L 840.138,1421.9375 L 843.80414,1421.9375 L 843.80414,1443.541 L 840.138,1443.541 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path181" />
|
||||
|
||||
<path
|
||||
d="M 857.374,1440.26 L 857.90077,1443.4962 C 856.87321,1443.7112 855.94959,1443.8222 855.13699,1443.8222 C 853.80471,1443.8222 852.77597,1443.6143 852.04014,1443.1903 C 851.3114,1442.7734 850.79762,1442.2183 850.4988,1441.5309 C 850.19998,1440.8505 850.04762,1439.4061 850.04762,1437.2116 L 850.04762,1424.7805 L 847.35943,1424.7805 L 847.35943,1421.934 L 850.04762,1421.934 L 850.04762,1416.5801 L 853.6925,1414.3856 L 853.6925,1421.934 L 857.374,1421.934 L 857.374,1424.7805 L 853.6925,1424.7805 L 853.6925,1437.4124 C 853.6925,1438.4612 853.7551,1439.1285 853.8803,1439.4262 C 854.01258,1439.725 854.22045,1439.9612 854.51219,1440.1419 C 854.80392,1440.3155 855.22085,1440.4053 855.76298,1440.4053 C 856.17164,1440.4053 856.70668,1440.3569 857.374,1440.26 L 857.374,1440.26 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path183" />
|
||||
|
||||
<path
|
||||
d="M 875.741,1436.58 L 879.52525,1437.0454 C 878.92761,1439.2599 877.82446,1440.9749 876.21344,1442.1973 C 874.59533,1443.4127 872.53194,1444.0245 870.02564,1444.0245 C 866.86619,1444.0245 864.35871,1443.0513 862.51147,1441.1072 C 860.65714,1439.1631 859.73352,1436.4336 859.73352,1432.9198 C 859.73352,1429.2808 860.67131,1426.4615 862.53982,1424.4548 C 864.41423,1422.4481 866.83785,1421.4406 869.82368,1421.4406 C 872.71266,1421.4406 875.07368,1422.4269 876.90085,1424.3922 C 878.73392,1426.3576 879.65046,1429.1284 879.65046,1432.6906 C 879.65046,1432.9127 879.64337,1433.2399 879.6292,1433.6698 L 863.519,1433.6698 C 863.65128,1436.045 864.32451,1437.8639 865.53278,1439.1217 C 866.74105,1440.3855 868.24105,1441.0174 870.04695,1441.0174 C 871.38632,1441.0174 872.53199,1440.6631 873.48396,1439.9544 C 874.43475,1439.2529 875.18475,1438.1284 875.74105,1436.58 L 875.741,1436.58 z M 863.7197,1430.6568 L 875.7823,1430.6568 C 875.62285,1428.8438 875.1575,1427.4761 874.40041,1426.5725 C 873.23348,1425.1635 871.72049,1424.4548 869.86616,1424.4548 C 868.18545,1424.4548 866.76813,1425.017 865.62246,1426.1426 C 864.47679,1427.267 863.8449,1428.7741 863.7197,1430.6568 L 863.7197,1430.6568 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path185" />
|
||||
|
||||
<path
|
||||
d="M 899.692,1443.54 L 893.08137,1421.9365 L 896.86562,1421.9365 L 900.30381,1434.4078 L 901.58058,1439.0472 C 901.63609,1438.811 902.01168,1437.3251 902.69908,1434.5885 L 906.13609,1421.9365 L 909.90026,1421.9365 L 913.13648,1434.4633 L 914.21955,1438.596 L 915.45616,1434.422 L 919.15655,1421.9366 L 922.71994,1421.9366 L 915.96285,1443.5401 L 912.16442,1443.5401 L 908.72623,1430.6023 L 907.88647,1426.9149 L 903.51875,1443.5401 L 899.69198,1443.5401 L 899.692,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path187" />
|
||||
|
||||
<polygon
|
||||
points="923.046,1444.05 931.691,1413.21 934.622,1413.21 925.997,1444.05 923.046,1444.05 "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="polygon189" />
|
||||
|
||||
<path
|
||||
d="M 936.698,1445.33 L 940.2602,1445.858 C 940.40666,1446.9552 940.8224,1447.7536 941.49681,1448.2603 C 942.40626,1448.9335 943.64878,1449.2737 945.21846,1449.2737 C 946.92043,1449.2737 948.22555,1448.9335 949.14917,1448.2603 C 950.07279,1447.58 950.69051,1446.628 951.01649,1445.4127 C 951.21137,1444.6627 951.29523,1443.1013 951.28106,1440.7119 C 949.68421,1442.5934 947.69051,1443.5383 945.30232,1443.5383 C 942.32949,1443.5383 940.03106,1442.4694 938.40586,1440.3233 C 936.78184,1438.1843 935.96216,1435.6083 935.96216,1432.6154 C 935.96216,1430.552 936.33657,1428.6493 937.07948,1426.9072 C 937.82948,1425.1639 938.91373,1423.8162 940.32987,1422.8654 C 941.74601,1421.9206 943.41255,1421.441 945.32239,1421.441 C 947.87121,1421.441 949.97593,1422.4757 951.6283,1424.5391 L 951.6283,1421.9347 L 955.0098,1421.9347 L 955.0098,1440.6079 C 955.0098,1443.9693 954.66255,1446.3575 953.98224,1447.7607 C 953.29483,1449.1627 952.21177,1450.2741 950.72594,1451.0867 C 949.23893,1451.8993 947.41295,1452.3091 945.23972,1452.3091 C 942.66255,1452.3091 940.58027,1451.7256 938.99641,1450.5658 C 937.40665,1449.406 936.64247,1447.6626 936.69798,1445.33 L 936.698,1445.33 z M 939.72517,1432.3509 C 939.72517,1435.1844 940.28856,1437.2537 941.42005,1438.5529 C 942.54564,1439.858 943.9547,1440.5041 945.64958,1440.5041 C 947.32911,1440.5041 948.73934,1439.858 949.87793,1438.5659 C 951.01651,1437.2678 951.58699,1435.2399 951.58699,1432.469 C 951.58699,1429.8233 951.00352,1427.8308 949.82951,1426.4903 C 948.65549,1425.1497 947.23935,1424.4765 945.58699,1424.4765 C 943.96179,1424.4765 942.5799,1425.1355 941.43423,1426.4619 C 940.29565,1427.7812 939.72517,1429.7466 939.72517,1432.3509 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path191" />
|
||||
|
||||
<path
|
||||
d="M 960.503,1443.54 L 960.503,1421.9365 L 963.79473,1421.9365 L 963.79473,1425.207 C 964.63449,1423.6798 965.41284,1422.6652 966.12741,1422.1798 C 966.83607,1421.6932 967.62032,1421.4428 968.47544,1421.4428 C 969.71087,1421.4428 970.96166,1421.8396 972.23843,1422.6239 L 970.97465,1426.0267 C 970.08646,1425.4916 969.19,1425.2282 968.29473,1425.2282 C 967.48922,1425.2282 966.77347,1425.4715 966.13449,1425.9499 C 965.49551,1426.4365 965.04433,1427.1026 964.77386,1427.9566 C 964.36402,1429.2558 964.16323,1430.679 964.16323,1432.2274 L 964.16323,1443.54 L 960.50299,1443.54 L 960.503,1443.54 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path193" />
|
||||
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.317715,0,0,0.317715,415.2513,-451.5858)"
|
||||
style="fill-rule:evenodd"
|
||||
id="_19509096">
|
||||
<path
|
||||
d="M 75.3272,2384.22 L 75.853972,2387.4562 C 74.826412,2387.6712 73.902792,2387.7822 73.090192,2387.7822 C 71.757912,2387.7822 70.729172,2387.5743 69.993342,2387.1503 C 69.264602,2386.7334 68.750822,2386.1783 68.452002,2385.4909 C 68.153183,2384.8105 68.000821,2383.3661 68.000821,2381.1716 L 68.000821,2368.7405 L 65.312631,2368.7405 L 65.312631,2365.894 L 68.000821,2365.894 L 68.000821,2360.5401 L 71.645701,2358.3456 L 71.645701,2365.894 L 75.327201,2365.894 L 75.327201,2368.7405 L 71.645701,2368.7405 L 71.645701,2381.3724 C 71.645701,2382.4212 71.708299,2383.0885 71.833496,2383.3862 C 71.965779,2383.685 72.173653,2383.9212 72.465386,2384.1019 C 72.757118,2384.2755 73.174047,2384.3653 73.716176,2384.3653 C 74.124837,2384.3653 74.659877,2384.3169 75.327196,2384.22 L 75.3272,2384.22 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="_19509000" />
|
||||
|
||||
<path
|
||||
d="M 93.6945,2380.54 L 97.47875,2381.0054 C 96.881112,2383.2199 95.77796,2384.9349 94.16694,2386.1573 C 92.54883,2387.3727 90.48544,2387.9845 87.97914,2387.9845 C 84.81969,2387.9845 82.31221,2387.0113 80.46497,2385.0672 C 78.61064,2383.1231 77.68702,2380.3936 77.68702,2376.8798 C 77.68702,2373.2408 78.624815,2370.4215 80.49332,2368.4148 C 82.36773,2366.4081 84.79135,2365.4006 87.77718,2365.4006 C 90.66616,2365.4006 93.02718,2366.3869 94.85435,2368.3522 C 96.68742,2370.3176 97.60396,2373.0884 97.60396,2376.6506 C 97.60396,2376.8727 97.596873,2377.1999 97.5827,2377.6298 L 81.4725,2377.6298 C 81.604783,2380.005 82.278012,2381.8239 83.48628,2383.0817 C 84.69455,2384.3455 86.19455,2384.9774 88.00045,2384.9774 C 89.33982,2384.9774 90.48549,2384.6231 91.43746,2383.9144 C 92.388247,2383.2129 93.13825,2382.0884 93.69455,2380.54 L 93.6945,2380.54 z M 81.6732,2374.6168 L 93.7358,2374.6168 C 93.576351,2372.8038 93.110997,2371.4361 92.35391,2370.5325 C 91.18698,2369.1235 89.67399,2368.4148 87.81966,2368.4148 C 86.13895,2368.4148 84.72163,2368.977 83.57596,2370.1026 C 82.43029,2371.227 81.7984,2372.7341 81.6732,2374.6168 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path197" />
|
||||
|
||||
<path
|
||||
d="M 99.639,2387.5 L 107.53467,2376.2713 L 100.22837,2365.8965 L 104.80514,2365.8965 L 108.12404,2370.9587 C 108.74294,2371.9237 109.24963,2372.7292 109.62404,2373.3823 C 110.22168,2372.487 110.77089,2371.6945 111.27758,2371 L 114.91656,2365.8965 L 119.29136,2365.8965 L 111.82561,2376.0693 L 119.86065,2387.5 L 115.36774,2387.5 L 110.93034,2380.7854 L 109.74924,2378.9724 L 104.07641,2387.5 L 99.63901,2387.5 L 99.639,2387.5 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path199" />
|
||||
|
||||
<path
|
||||
d="M 130.909,2384.22 L 131.43577,2387.4562 C 130.40821,2387.6712 129.48459,2387.7822 128.67199,2387.7822 C 127.33971,2387.7822 126.31097,2387.5743 125.57514,2387.1503 C 124.8464,2386.7334 124.33262,2386.1783 124.0338,2385.4909 C 123.73498,2384.8105 123.58262,2383.3661 123.58262,2381.1716 L 123.58262,2368.7405 L 120.89443,2368.7405 L 120.89443,2365.894 L 123.58262,2365.894 L 123.58262,2360.5401 L 127.2275,2358.3456 L 127.2275,2365.894 L 130.909,2365.894 L 130.909,2368.7405 L 127.2275,2368.7405 L 127.2275,2381.3724 C 127.2275,2382.4212 127.2901,2383.0885 127.4153,2383.3862 C 127.54758,2383.685 127.75545,2383.9212 128.04719,2384.1019 C 128.33892,2384.2755 128.75585,2384.3653 129.29798,2384.3653 C 129.70664,2384.3653 130.24168,2384.3169 130.909,2384.22 L 130.909,2384.22 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path201" />
|
||||
|
||||
<path
|
||||
d="M 146.067,2395.78 L 146.067,2365.8993 L 149.40007,2365.8993 L 149.40007,2368.7044 C 150.1855,2367.6072 151.07369,2366.7816 152.067,2366.2324 C 153.05322,2365.6843 154.2544,2365.4056 155.66464,2365.4056 C 157.51188,2365.4056 159.13708,2365.8851 160.54614,2366.83 C 161.96228,2367.7808 163.02527,2369.1213 163.74102,2370.8505 C 164.46267,2372.5796 164.82409,2374.4753 164.82409,2376.5375 C 164.82409,2378.7461 164.42842,2380.7387 163.63,2382.5103 C 162.83748,2384.2808 161.68472,2385.6343 160.17173,2386.5792 C 158.65756,2387.517 157.06661,2387.9895 155.40008,2387.9895 C 154.17882,2387.9895 153.08748,2387.732 152.11543,2387.2182 C 151.14338,2386.7044 150.35204,2386.0513 149.72724,2385.267 L 149.72724,2395.78 L 146.067,2395.78 L 146.067,2395.78 z M 149.37999,2376.8221 C 149.37999,2379.6001 149.9422,2381.6552 151.06779,2382.9886 C 152.1922,2384.315 153.55992,2384.9823 155.15795,2384.9823 C 156.78197,2384.9823 158.17803,2384.2949 159.33787,2382.9131 C 160.49771,2381.5383 161.08118,2379.4064 161.08118,2376.5174 C 161.08118,2373.7595 160.51189,2371.7044 159.37921,2370.3296 C 158.24771,2368.9619 156.89299,2368.2745 155.32449,2368.2745 C 153.76189,2368.2745 152.38,2369.0032 151.17882,2370.4619 C 149.97646,2371.9193 149.38,2374.0453 149.38,2376.8221 L 149.37999,2376.8221 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path203" />
|
||||
|
||||
<path
|
||||
d="M 169.199,2387.5 L 169.199,2365.8965 L 172.49073,2365.8965 L 172.49073,2369.167 C 173.33049,2367.6398 174.10884,2366.6252 174.82341,2366.1398 C 175.53207,2365.6532 176.31632,2365.4028 177.17144,2365.4028 C 178.40687,2365.4028 179.65766,2365.7996 180.93443,2366.5839 L 179.67065,2369.9867 C 178.78246,2369.4516 177.886,2369.1882 176.99073,2369.1882 C 176.18522,2369.1882 175.46947,2369.4315 174.83049,2369.9099 C 174.19151,2370.3965 173.74033,2371.0626 173.46986,2371.9166 C 173.06002,2373.2158 172.85923,2374.639 172.85923,2376.1874 L 172.85923,2387.5 L 169.19899,2387.5 L 169.199,2387.5 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path205" />
|
||||
|
||||
<path
|
||||
d="M 181.747,2376.69 C 181.747,2372.6908 182.85842,2369.725 185.08716,2367.8022 C 186.94149,2366.2042 189.20566,2365.3987 191.8785,2365.3987 C 194.85133,2365.3987 197.28086,2366.3719 199.16354,2368.3231 C 201.05212,2370.2672 201.98992,2372.9542 201.98992,2376.3853 C 201.98992,2379.1691 201.57299,2381.3577 200.73913,2382.9475 C 199.90645,2384.5443 198.6911,2385.7809 197.10133,2386.662 C 195.5033,2387.5443 193.76708,2387.9825 191.8785,2387.9825 C 188.85842,2387.9825 186.41354,2387.0164 184.54504,2385.0723 C 182.67772,2383.1353 181.74701,2380.3431 181.74701,2376.69 L 181.747,2376.69 z M 185.51117,2376.69 C 185.51117,2379.4609 186.11471,2381.5313 187.32298,2382.9061 C 188.53125,2384.288 190.05251,2384.9754 191.87849,2384.9754 C 193.69857,2384.9754 195.21156,2384.2809 196.41983,2382.8991 C 197.62219,2381.5172 198.22574,2379.4054 198.22574,2376.5731 C 198.22574,2373.8991 197.6222,2371.8711 196.40684,2370.4963 C 195.19149,2369.1215 193.6844,2368.4341 191.87849,2368.4341 C 190.05251,2368.4341 188.53125,2369.1215 187.32298,2370.4892 C 186.11471,2371.8569 185.51117,2373.9262 185.51117,2376.69 L 185.51117,2376.69 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path207" />
|
||||
|
||||
<path
|
||||
d="M 206.288,2395.78 L 206.288,2365.8993 L 209.62107,2365.8993 L 209.62107,2368.7044 C 210.4065,2367.6072 211.29469,2366.7816 212.288,2366.2324 C 213.27422,2365.6843 214.4754,2365.4056 215.88564,2365.4056 C 217.73288,2365.4056 219.35808,2365.8851 220.76714,2366.83 C 222.18328,2367.7808 223.24627,2369.1213 223.96202,2370.8505 C 224.68367,2372.5796 225.04509,2374.4753 225.04509,2376.5375 C 225.04509,2378.7461 224.64942,2380.7387 223.851,2382.5103 C 223.05848,2384.2808 221.90572,2385.6343 220.39273,2386.5792 C 218.87856,2387.517 217.28761,2387.9895 215.62108,2387.9895 C 214.39982,2387.9895 213.30848,2387.732 212.33643,2387.2182 C 211.36438,2386.7044 210.57304,2386.0513 209.94824,2385.267 L 209.94824,2395.78 L 206.288,2395.78 L 206.288,2395.78 z M 209.60099,2376.8221 C 209.60099,2379.6001 210.1632,2381.6552 211.28879,2382.9886 C 212.4132,2384.315 213.78092,2384.9823 215.37895,2384.9823 C 217.00297,2384.9823 218.39903,2384.2949 219.55887,2382.9131 C 220.71871,2381.5383 221.30218,2379.4064 221.30218,2376.5174 C 221.30218,2373.7595 220.73289,2371.7044 219.60021,2370.3296 C 218.46871,2368.9619 217.11399,2368.2745 215.54549,2368.2745 C 213.98289,2368.2745 212.601,2369.0032 211.39982,2370.4619 C 210.19746,2371.9193 209.601,2374.0453 209.601,2376.8221 L 209.60099,2376.8221 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path209" />
|
||||
|
||||
<path
|
||||
d="M 228.093,2376.69 C 228.093,2372.6908 229.20442,2369.725 231.43316,2367.8022 C 233.28749,2366.2042 235.55166,2365.3987 238.2245,2365.3987 C 241.19733,2365.3987 243.62686,2366.3719 245.50954,2368.3231 C 247.39812,2370.2672 248.33592,2372.9542 248.33592,2376.3853 C 248.33592,2379.1691 247.91899,2381.3577 247.08513,2382.9475 C 246.25245,2384.5443 245.0371,2385.7809 243.44733,2386.662 C 241.8493,2387.5443 240.11308,2387.9825 238.2245,2387.9825 C 235.20442,2387.9825 232.75954,2387.0164 230.89104,2385.0723 C 229.02372,2383.1353 228.09301,2380.3431 228.09301,2376.69 L 228.093,2376.69 z M 231.85717,2376.69 C 231.85717,2379.4609 232.46071,2381.5313 233.66898,2382.9061 C 234.87725,2384.288 236.39851,2384.9754 238.22449,2384.9754 C 240.04457,2384.9754 241.55756,2384.2809 242.76583,2382.8991 C 243.96819,2381.5172 244.57174,2379.4054 244.57174,2376.5731 C 244.57174,2373.8991 243.9682,2371.8711 242.75284,2370.4963 C 241.53749,2369.1215 240.0304,2368.4341 238.22449,2368.4341 C 236.39851,2368.4341 234.87725,2369.1215 233.66898,2370.4892 C 232.46071,2371.8569 231.85717,2373.9262 231.85717,2376.69 L 231.85717,2376.69 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path211" />
|
||||
|
||||
<path
|
||||
d="M 252.593,2387.5 L 252.593,2365.8965 L 255.88473,2365.8965 L 255.88473,2369.167 C 256.72449,2367.6398 257.50284,2366.6252 258.21741,2366.1398 C 258.92607,2365.6532 259.71032,2365.4028 260.56544,2365.4028 C 261.80087,2365.4028 263.05166,2365.7996 264.32843,2366.5839 L 263.06465,2369.9867 C 262.17646,2369.4516 261.28,2369.1882 260.38473,2369.1882 C 259.57922,2369.1882 258.86347,2369.4315 258.22449,2369.9099 C 257.58551,2370.3965 257.13433,2371.0626 256.86386,2371.9166 C 256.45402,2373.2158 256.25323,2374.639 256.25323,2376.1874 L 256.25323,2387.5 L 252.59299,2387.5 L 252.593,2387.5 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path213" />
|
||||
|
||||
<path
|
||||
d="M 274.502,2384.22 L 275.02877,2387.4562 C 274.00121,2387.6712 273.07759,2387.7822 272.26499,2387.7822 C 270.93271,2387.7822 269.90397,2387.5743 269.16814,2387.1503 C 268.4394,2386.7334 267.92562,2386.1783 267.6268,2385.4909 C 267.32798,2384.8105 267.17562,2383.3661 267.17562,2381.1716 L 267.17562,2368.7405 L 264.48743,2368.7405 L 264.48743,2365.894 L 267.17562,2365.894 L 267.17562,2360.5401 L 270.8205,2358.3456 L 270.8205,2365.894 L 274.502,2365.894 L 274.502,2368.7405 L 270.8205,2368.7405 L 270.8205,2381.3724 C 270.8205,2382.4212 270.8831,2383.0885 271.0083,2383.3862 C 271.14058,2383.685 271.34845,2383.9212 271.64019,2384.1019 C 271.93192,2384.2755 272.34885,2384.3653 272.89098,2384.3653 C 273.29964,2384.3653 273.83468,2384.3169 274.502,2384.22 L 274.502,2384.22 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path215" />
|
||||
|
||||
<path
|
||||
d="M 278.099,2361.89 L 278.099,2357.6758 L 281.76514,2357.6758 L 281.76514,2361.89 L 278.099,2361.89 z M 278.099,2387.501 L 278.099,2365.8975 L 281.76514,2365.8975 L 281.76514,2387.501 L 278.099,2387.501 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path217" />
|
||||
|
||||
<path
|
||||
d="M 285.973,2376.69 C 285.973,2372.6908 287.08442,2369.725 289.31316,2367.8022 C 291.16749,2366.2042 293.43166,2365.3987 296.1045,2365.3987 C 299.07733,2365.3987 301.50686,2366.3719 303.38954,2368.3231 C 305.27812,2370.2672 306.21592,2372.9542 306.21592,2376.3853 C 306.21592,2379.1691 305.79899,2381.3577 304.96513,2382.9475 C 304.13245,2384.5443 302.9171,2385.7809 301.32733,2386.662 C 299.7293,2387.5443 297.99308,2387.9825 296.1045,2387.9825 C 293.08442,2387.9825 290.63954,2387.0164 288.77104,2385.0723 C 286.90372,2383.1353 285.97301,2380.3431 285.97301,2376.69 L 285.973,2376.69 z M 289.73717,2376.69 C 289.73717,2379.4609 290.34071,2381.5313 291.54898,2382.9061 C 292.75725,2384.288 294.27851,2384.9754 296.10449,2384.9754 C 297.92457,2384.9754 299.43756,2384.2809 300.64583,2382.8991 C 301.84819,2381.5172 302.45174,2379.4054 302.45174,2376.5731 C 302.45174,2373.8991 301.8482,2371.8711 300.63284,2370.4963 C 299.41749,2369.1215 297.9104,2368.4341 296.10449,2368.4341 C 294.27851,2368.4341 292.75725,2369.1215 291.54898,2370.4892 C 290.34071,2371.8569 289.73717,2373.9262 289.73717,2376.69 L 289.73717,2376.69 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path219" />
|
||||
|
||||
<path
|
||||
d="M 310.514,2387.5 L 310.514,2365.8965 L 313.80573,2365.8965 L 313.80573,2368.9662 C 315.39667,2366.591 317.68801,2365.4028 320.68093,2365.4028 C 321.98605,2365.4028 323.18014,2365.639 324.27148,2366.1044 C 325.36872,2366.5768 326.18014,2367.1874 326.72227,2367.9516 C 327.27148,2368.7087 327.64589,2369.6111 327.86794,2370.6528 C 328.00022,2371.3343 328.06991,2372.5213 328.06991,2374.2162 L 328.06991,2387.5001 L 324.40259,2387.5001 L 324.40259,2374.3544 C 324.40259,2372.8686 324.2644,2371.7501 323.97975,2371.0071 C 323.69511,2370.2713 323.18723,2369.6808 322.46558,2369.2438 C 321.73684,2368.7997 320.88881,2368.5764 319.90967,2368.5764 C 318.34707,2368.5764 317.0077,2369.0772 315.86794,2370.0634 C 314.73644,2371.0556 314.17424,2372.9312 314.17424,2375.702 L 314.17424,2387.5 L 310.514,2387.5 L 310.514,2387.5 z "
|
||||
style="fill:#000000;fill-rule:nonzero"
|
||||
id="path221" />
|
||||
|
||||
</g>
|
||||
<path
|
||||
d="M 88.126188,369.03622 C 88.126188,356.61906 103.01889,346.69059 127.84056,346.69059 C 152.66211,346.69059 167.55494,356.61906 167.55494,369.02307 L 167.55494,406.26181 C 167.55494,417.22297 158.65917,426.11874 147.698,426.11874 L 107.98331,426.11874 C 94.282043,426.11874 83.162145,437.23902 83.162145,450.94029 L 83.162145,468.32206 L 68.269064,468.30894 C 55.851904,468.30894 45.923056,453.41586 45.923056,428.59425 C 45.923056,403.7727 55.851904,388.87987 68.269064,388.87987 L 127.84063,388.893 L 127.84063,383.92876 L 88.126252,383.92876 L 88.126252,369.03606 L 88.126188,369.03622 z M 105.49443,359.10775 C 109.61173,359.10775 112.94774,362.44376 112.94774,366.54753 C 112.94774,370.66483 109.61173,374.00045 105.49443,374.00045 C 101.39066,374.00045 98.041501,370.66483 98.041501,366.54753 C 98.041501,362.44376 101.39063,359.10775 105.49443,359.10775 z "
|
||||
style="fill:url(#pyBlue);fill-opacity:1;fill-rule:evenodd"
|
||||
id="path223" />
|
||||
<g
|
||||
transform="matrix(0.317715,0,0,0.317715,-71.39343,-151.2348)"
|
||||
style="fill-rule:evenodd"
|
||||
id="_19487936">
|
||||
<g
|
||||
id="g226">
|
||||
<path
|
||||
d="M 1200.75,1694 C 1269.1252,1692.8331 1300.1244,1757.1665 1300.7079,1830.124 C 1300.7079,1894.4575 1268.5418,1954.749 1199.6259,1957.041 C 1171.459,1957.041 1147.3338,1948.4166 1123.792,1934.0827 L 1123.792,2082.8327 L 1082.418,2067.874 L 1083.0003,1737.625 C 1082.418,1737.625 1115.1676,1694.5833 1200.1683,1693.4163 L 1200.7506,1693.9998 L 1200.75,1694 z M 1190.4177,1927.166 C 1245.5421,1923.7491 1252.4586,1869.7503 1252.4586,1827.2495 C 1252.4586,1785.8743 1245.5421,1723.8745 1193.2925,1721.5835 C 1157.6669,1719.2496 1128.959,1735.9162 1123.2094,1741.667 L 1123.2094,1905.375 C 1137,1913.9581 1164.5834,1928.9167 1190.4177,1927.1663 L 1190.4177,1927.166 z "
|
||||
style="fill:#6a6a6a"
|
||||
id="_19487984" />
|
||||
|
||||
<path
|
||||
d="M 1387.87,1869.75 L 1387.87,1693.416 L 1345.3704,1707.7912 L 1345.3704,1882.3742 C 1345.3704,1928.9155 1388.4535,1955.9155 1426.3704,1955.9155 C 1475.7452,1955.9155 1503.9121,1942.1238 1516.5369,1936.3742 C 1517.1204,1942.6659 1516.5369,1940.9569 1516.5369,1947.2899 C 1516.5369,1965.6655 1515.9534,1997.2493 1507.3704,2013.3324 C 1490.1204,2046.082 1444.1613,2050.6659 1411.9952,2055.2485 L 1418.9117,2081.665 C 1461.4113,2080.5406 1521.1197,2064.4575 1542.3697,2024.2481 C 1554.4536,2001.2485 1556.1614,1957.0398 1556.1614,1927.7485 L 1556.1614,1699.7485 L 1514.2453,1699.7485 L 1514.2453,1904.7905 C 1500.4536,1913.957 1475.2028,1926.6244 1452.7866,1927.1653 C 1415.4531,1927.7488 1387.8697,1907.6653 1387.8697,1869.1661 L 1387.8697,1869.7496 L 1387.87,1869.75 z "
|
||||
style="fill:#6a6a6a"
|
||||
id="_19488200" />
|
||||
|
||||
<path
|
||||
d="M 1626.62,1726.75 L 1626.62,1891.583 C 1626.62,1934.6661 1659.9117,1959.9169 1715.6196,1954.7495 L 1715.6196,1932.9168 C 1686.3283,1931.7912 1668.5361,1923.7491 1668.5361,1890.416 L 1668.5361,1726.749 L 1715.6196,1726.749 L 1715.6196,1699.749 L 1668.5361,1699.749 L 1668.5361,1614.7498 L 1626.62,1629.6671 L 1626.62,1699.749 L 1597.8696,1699.749 L 1597.8696,1726.749 L 1626.62,1726.749 L 1626.62,1726.75 z "
|
||||
style="fill:#6a6a6a"
|
||||
id="_19488488" />
|
||||
|
||||
<path
|
||||
d="M 1970.21,1951.29 L 1970.21,1776.123 C 1970.21,1732.4565 1940.3352,1697.999 1895.5431,1697.999 C 1861.6266,1697.999 1832.9187,1708.9147 1807.6691,1727.2903 L 1807.6691,1550.9993 L 1765.7104,1564.2087 L 1765.7104,1951.2897 L 1807.6691,1951.2897 L 1807.6691,1757.1647 C 1828.9183,1742.2474 1853.0435,1726.7478 1879.46,1726.7478 C 1913.3352,1726.7478 1927.7104,1760.0395 1927.7104,1789.3309 L 1927.7104,1951.2899 L 1970.21,1951.2899 L 1970.21,1951.29 z "
|
||||
style="fill:#6a6a6a"
|
||||
id="_126749024" />
|
||||
|
||||
<path
|
||||
d="M 2007.75,1820.92 C 2007.75,1890.4196 2044.5,1955.92 2122.041,1956.462 C 2200.1662,1955.9199 2238.042,1890.4195 2238.042,1820.92 C 2237.4999,1753.1696 2195.0003,1694.003 2122.625,1693.42 C 2050.8341,1694.0035 2007.751,1753.1696 2007.751,1820.92 L 2007.75,1820.92 z M 2053.1244,1820.92 C 2053.1244,1775.5444 2064.5823,1725.5861 2122.0405,1722.1279 C 2176.0405,1725.0039 2192.1248,1775.5444 2192.1248,1820.92 C 2192.1248,1869.1704 2181.75,1928.92 2123.1661,1930.628 C 2069.2074,1930.0445 2053.7078,1869.1705 2053.7078,1820.92 L 2053.1243,1820.92 L 2053.1244,1820.92 z "
|
||||
style="fill:#6a6a6a"
|
||||
id="_126677456" />
|
||||
|
||||
<path
|
||||
d="M 2477.04,1951.29 L 2477.04,1758.873 C 2477.04,1724.999 2450.0813,1703.1651 2419.6231,1696.2899 C 2389.7483,1689.4147 2361.6239,1695.1655 2340.957,1700.8738 C 2314.4991,1707.7903 2295.5814,1719.8317 2274.3322,1735.3313 L 2274.3322,1951.2903 L 2316.2483,1951.2903 L 2316.2483,1740.4993 C 2329.4566,1731.3327 2350.707,1721.5828 2373.0818,1720.9993 C 2409.8731,1720.4158 2435.1239,1741.6662 2435.1239,1780.1654 L 2435.1239,1951.2904 L 2477.04,1951.2904 L 2477.04,1951.29 z "
|
||||
style="fill:#6a6a6a"
|
||||
id="_126678176" />
|
||||
|
||||
</g>
|
||||
|
||||
</g>
|
||||
<path
|
||||
d="M 167.55462,488.16664 C 167.55462,500.58418 152.66192,510.51265 127.84025,510.51265 C 103.0187,510.51265 88.12587,500.58418 88.12587,488.17979 L 88.12587,450.94105 C 88.12587,439.97988 97.021636,431.08374 107.9828,431.08374 L 147.6975,431.08374 C 161.39877,431.08374 172.51904,419.96384 172.51904,406.26257 L 172.51904,388.8808 L 187.41174,388.89392 C 199.81575,388.89392 209.7446,403.787 209.7446,428.60829 C 209.7446,453.42984 199.81575,468.32298 187.41174,468.32298 L 127.84018,468.30986 L 127.84018,473.2741 L 167.55456,473.2741 L 167.55456,488.1668 L 167.55462,488.16664 z M 150.17323,498.0951 C 146.06946,498.0951 142.73345,494.75948 142.73345,490.65533 C 142.73345,486.53841 146.06946,483.2024 150.17323,483.2024 C 154.29015,483.2024 157.62615,486.53841 157.62615,490.65533 C 157.62615,494.75948 154.29015,498.0951 150.17323,498.0951 z "
|
||||
style="fill:url(#pyYellow);fill-opacity:1;fill-rule:evenodd"
|
||||
id="path234" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 113 KiB |
Binary file not shown.
|
@ -515,10 +515,7 @@
|
|||
RelativePath="..\Objects\funcobject.c">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\functionalmodule.c">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\functionalmodule.c">
|
||||
RelativePath="..\Modules\_functoolsmodule.c">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Python\future.c">
|
||||
|
|
|
@ -1,385 +1,385 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="_bsddb"
|
||||
ProjectGUID="{E1DBB220-D64B-423D-A545-539A55AA7FE2}"
|
||||
SccProjectName="_bsddb"
|
||||
SccLocalPath=".."
|
||||
SccProvider="MSSCCI:Perforce SCM"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-debug\_bsddb"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\Include;..\PC;"..\..\db-4.4.20\build_win32""
|
||||
PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="..\..\db-4.4.20\build_win32\Debug\libdb44sd.lib"
|
||||
OutputFile="./_bsddb_d.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
IgnoreDefaultLibraryNames=""
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_bsddb_d.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1e180000"
|
||||
ImportLibrary=".\./_bsddb_d.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-release\_bsddb"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include;..\PC;"..\..\db-4.4.20\build_win32""
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS"
|
||||
StringPooling="true"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="..\..\db-4.4.20\build_win32\Release\libdb44s.lib"
|
||||
OutputFile="./_bsddb.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
IgnoreDefaultLibraryNames=""
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_bsddb.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1e180000"
|
||||
ImportLibrary=".\./_bsddb.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseItanium|Win32"
|
||||
OutputDirectory="./."
|
||||
IntermediateDirectory=".\ia64-temp-release\_bsddb"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_ITANIUM"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include;..\PC;"..\..\db-4.4.20\build_win32""
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
|
||||
AdditionalDependencies="..\..\db-4.4.20\build_win32\Release_IA64\libdb44s.lib"
|
||||
OutputFile="./_bsddb.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
IgnoreDefaultLibraryNames=""
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_bsddb.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1e180000"
|
||||
ImportLibrary=".\./_bsddb.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseAMD64|Win32"
|
||||
OutputDirectory="."
|
||||
IntermediateDirectory="amd64-temp-release\_bsddb"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_OPTERON /GS-"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include;..\PC;"..\..\db-4.4.20\build_win32""
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
|
||||
AdditionalDependencies="..\..\db-4.4.20\build_win32\Release_AMD64\libdb44s.lib"
|
||||
OutputFile="./_bsddb.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
IgnoreDefaultLibraryNames=""
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_bsddb.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1e180000"
|
||||
ImportLibrary=".\./_bsddb.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\Modules\_bsddb.c"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="_bsddb"
|
||||
ProjectGUID="{E1DBB220-D64B-423D-A545-539A55AA7FE2}"
|
||||
SccProjectName="_bsddb"
|
||||
SccLocalPath=".."
|
||||
SccProvider="MSSCCI:Perforce SCM"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-debug\_bsddb"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\Include;..\PC;"..\..\db-4.4.20\build_win32""
|
||||
PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="..\..\db-4.4.20\build_win32\Debug\libdb44sd.lib"
|
||||
OutputFile="./_bsddb_d.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
IgnoreDefaultLibraryNames=""
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_bsddb_d.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1e180000"
|
||||
ImportLibrary=".\./_bsddb_d.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-release\_bsddb"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include;..\PC;"..\..\db-4.4.20\build_win32""
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS"
|
||||
StringPooling="true"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="..\..\db-4.4.20\build_win32\Release\libdb44s.lib"
|
||||
OutputFile="./_bsddb.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
IgnoreDefaultLibraryNames=""
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_bsddb.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1e180000"
|
||||
ImportLibrary=".\./_bsddb.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseItanium|Win32"
|
||||
OutputDirectory="./."
|
||||
IntermediateDirectory=".\ia64-temp-release\_bsddb"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_ITANIUM"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include;..\PC;"..\..\db-4.4.20\build_win32""
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
|
||||
AdditionalDependencies="..\..\db-4.4.20\build_win32\Release_IA64\libdb44s.lib"
|
||||
OutputFile="./_bsddb.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
IgnoreDefaultLibraryNames=""
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_bsddb.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1e180000"
|
||||
ImportLibrary=".\./_bsddb.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseAMD64|Win32"
|
||||
OutputDirectory="."
|
||||
IntermediateDirectory="amd64-temp-release\_bsddb"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_OPTERON /GS-"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include;..\PC;"..\..\db-4.4.20\build_win32""
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
|
||||
AdditionalDependencies="..\..\db-4.4.20\build_win32\Release_AMD64\libdb44s.lib"
|
||||
OutputFile="./_bsddb.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
IgnoreDefaultLibraryNames=""
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_bsddb.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1e180000"
|
||||
ImportLibrary=".\./_bsddb.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\Modules\_bsddb.c"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
|
|
|
@ -1,408 +1,408 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="_ctypes"
|
||||
ProjectGUID="{F22F40F4-D318-40DC-96B3-88DC81CE0894}"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-debug\_ctypes"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\_ctypes\libffi_msvc"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="false"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
|
||||
OutputFile="./_ctypes_d.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_ctypes_d.pdb"
|
||||
SubSystem="0"
|
||||
BaseAddress="0x1D1A0000"
|
||||
ImportLibrary=".\./_ctypes_d.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-release\_ctypes"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\_ctypes\libffi_msvc"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
StringPooling="true"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="false"
|
||||
DebugInformationFormat="0"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
|
||||
OutputFile="./_ctypes.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="false"
|
||||
ProgramDatabaseFile=".\./_ctypes.pdb"
|
||||
SubSystem="0"
|
||||
OptimizeReferences="0"
|
||||
EnableCOMDATFolding="0"
|
||||
BaseAddress="0x1D1A0000"
|
||||
ImportLibrary=".\./_ctypes.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseAMD64|Win32"
|
||||
OutputDirectory="."
|
||||
IntermediateDirectory="amd64-temp-release\_ctypes"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_OPTERON"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\_ctypes\libffi_msvc"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK /EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
|
||||
OutputFile="./_ctypes.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="false"
|
||||
ProgramDatabaseFile=".\./_ctypes.pdb"
|
||||
SubSystem="0"
|
||||
OptimizeReferences="0"
|
||||
EnableCOMDATFolding="0"
|
||||
BaseAddress="0x1D1A0000"
|
||||
ImportLibrary=".\./_ctypes.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseItanium|Win32"
|
||||
OutputDirectory="."
|
||||
IntermediateDirectory="ia64-temp-release\_ctypes"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_ITANIUM"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\_ctypes\libffi_msvc"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK /EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
|
||||
OutputFile="./_ctypes.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="false"
|
||||
ProgramDatabaseFile=".\./_ctypes.pdb"
|
||||
SubSystem="0"
|
||||
OptimizeReferences="0"
|
||||
EnableCOMDATFolding="0"
|
||||
BaseAddress="0x1D1A0000"
|
||||
ImportLibrary=".\./_ctypes.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\_ctypes.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\callbacks.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\callproc.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\cfield.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\libffi_msvc\ffi.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\malloc_closure.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\libffi_msvc\prep_cif.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\stgdict.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\libffi_msvc\win32.c"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="_ctypes"
|
||||
ProjectGUID="{F22F40F4-D318-40DC-96B3-88DC81CE0894}"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-debug\_ctypes"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\_ctypes\libffi_msvc"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="false"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
|
||||
OutputFile="./_ctypes_d.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_ctypes_d.pdb"
|
||||
SubSystem="0"
|
||||
BaseAddress="0x1D1A0000"
|
||||
ImportLibrary=".\./_ctypes_d.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-release\_ctypes"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\_ctypes\libffi_msvc"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
StringPooling="true"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="false"
|
||||
DebugInformationFormat="0"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
|
||||
OutputFile="./_ctypes.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="false"
|
||||
ProgramDatabaseFile=".\./_ctypes.pdb"
|
||||
SubSystem="0"
|
||||
OptimizeReferences="0"
|
||||
EnableCOMDATFolding="0"
|
||||
BaseAddress="0x1D1A0000"
|
||||
ImportLibrary=".\./_ctypes.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseAMD64|Win32"
|
||||
OutputDirectory="."
|
||||
IntermediateDirectory="amd64-temp-release\_ctypes"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_OPTERON"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\_ctypes\libffi_msvc"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK /EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
|
||||
OutputFile="./_ctypes.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="false"
|
||||
ProgramDatabaseFile=".\./_ctypes.pdb"
|
||||
SubSystem="0"
|
||||
OptimizeReferences="0"
|
||||
EnableCOMDATFolding="0"
|
||||
BaseAddress="0x1D1A0000"
|
||||
ImportLibrary=".\./_ctypes.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseItanium|Win32"
|
||||
OutputDirectory="."
|
||||
IntermediateDirectory="ia64-temp-release\_ctypes"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_ITANIUM"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\_ctypes\libffi_msvc"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK /EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
|
||||
OutputFile="./_ctypes.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="false"
|
||||
ProgramDatabaseFile=".\./_ctypes.pdb"
|
||||
SubSystem="0"
|
||||
OptimizeReferences="0"
|
||||
EnableCOMDATFolding="0"
|
||||
BaseAddress="0x1D1A0000"
|
||||
ImportLibrary=".\./_ctypes.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\_ctypes.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\callbacks.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\callproc.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\cfield.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\libffi_msvc\ffi.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\malloc_closure.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\libffi_msvc\prep_cif.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\stgdict.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\libffi_msvc\win32.c"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
|
|
|
@ -1,367 +1,367 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="_ctypes_test"
|
||||
ProjectGUID="{8CF334D9-4F82-42EB-97AF-83592C5AFD2F}"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-debug\_ctypes_test"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="./_ctypes_test_d.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_ctypes_test_d.pdb"
|
||||
SubSystem="0"
|
||||
ImportLibrary=".\./_ctypes_test_d.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-release\_ctypes_test"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
StringPooling="true"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="0"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="./_ctypes_test.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="false"
|
||||
ProgramDatabaseFile=".\./_ctypes_test.pdb"
|
||||
SubSystem="0"
|
||||
OptimizeReferences="0"
|
||||
EnableCOMDATFolding="0"
|
||||
ImportLibrary=".\./_ctypes_test.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseItanium|Win32"
|
||||
OutputDirectory="."
|
||||
IntermediateDirectory="ia64-temp-release\_ctypes_test"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_ITANIUM"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
|
||||
OutputFile="./_ctypes_test_d.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_ctypes_test_d.pdb"
|
||||
SubSystem="0"
|
||||
ImportLibrary=".\./_ctypes_test_d.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseAMD64|Win32"
|
||||
OutputDirectory="."
|
||||
IntermediateDirectory="amd64-temp-release\_ctypes_test"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_OPTERON"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
|
||||
OutputFile="./_ctypes_test.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="false"
|
||||
ProgramDatabaseFile=".\./_ctypes_test.pdb"
|
||||
SubSystem="0"
|
||||
OptimizeReferences="0"
|
||||
EnableCOMDATFolding="0"
|
||||
ImportLibrary=".\./_ctypes_test.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\_ctypes_test.c"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="_ctypes_test"
|
||||
ProjectGUID="{8CF334D9-4F82-42EB-97AF-83592C5AFD2F}"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-debug\_ctypes_test"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="./_ctypes_test_d.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_ctypes_test_d.pdb"
|
||||
SubSystem="0"
|
||||
ImportLibrary=".\./_ctypes_test_d.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-release\_ctypes_test"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
StringPooling="true"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="0"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="./_ctypes_test.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="false"
|
||||
ProgramDatabaseFile=".\./_ctypes_test.pdb"
|
||||
SubSystem="0"
|
||||
OptimizeReferences="0"
|
||||
EnableCOMDATFolding="0"
|
||||
ImportLibrary=".\./_ctypes_test.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseItanium|Win32"
|
||||
OutputDirectory="."
|
||||
IntermediateDirectory="ia64-temp-release\_ctypes_test"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_ITANIUM"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
|
||||
OutputFile="./_ctypes_test_d.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_ctypes_test_d.pdb"
|
||||
SubSystem="0"
|
||||
ImportLibrary=".\./_ctypes_test_d.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseAMD64|Win32"
|
||||
OutputDirectory="."
|
||||
IntermediateDirectory="amd64-temp-release\_ctypes_test"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_OPTERON"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
|
||||
OutputFile="./_ctypes_test.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="false"
|
||||
ProgramDatabaseFile=".\./_ctypes_test.pdb"
|
||||
SubSystem="0"
|
||||
OptimizeReferences="0"
|
||||
EnableCOMDATFolding="0"
|
||||
ImportLibrary=".\./_ctypes_test.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\Modules\_ctypes\_ctypes_test.c"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
|
|
|
@ -1,390 +1,390 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="_elementtree"
|
||||
ProjectGUID="{1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-debug\_elementtree"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\expat"
|
||||
PreprocessorDefinitions="_DEBUG;HAVE_EXPAT_H;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="odbccp32.lib"
|
||||
OutputFile="./_elementtree_d.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_elementtree_d.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1D100000"
|
||||
ImportLibrary=".\./_elementtree_d.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-release\_elementtree"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\expat"
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE"
|
||||
StringPooling="true"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="odbccp32.lib"
|
||||
OutputFile="./_elementtree.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_elementtree.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1D100000"
|
||||
ImportLibrary=".\./_elementtree.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseItanium|Win32"
|
||||
OutputDirectory="./."
|
||||
IntermediateDirectory=".\ia64-temp-release\_elementtree"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_ITANIUM"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\expat"
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
|
||||
AdditionalDependencies="odbccp32.lib"
|
||||
OutputFile="./_elementtree.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_elementtree.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1D100000"
|
||||
ImportLibrary=".\./_elementtree.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseAMD64|Win32"
|
||||
OutputDirectory="."
|
||||
IntermediateDirectory="amd64-temp-release\_elementtree"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_OPTERON /GS-"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\expat"
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
|
||||
AdditionalDependencies="odbccp32.lib"
|
||||
OutputFile="./_elementtree.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_elementtree.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1D100000"
|
||||
ImportLibrary=".\./_elementtree.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\Modules\_elementtree.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\expat\xmlparse.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\expat\xmlrole.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\expat\xmltok.c"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="_elementtree"
|
||||
ProjectGUID="{1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-debug\_elementtree"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\expat"
|
||||
PreprocessorDefinitions="_DEBUG;HAVE_EXPAT_H;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="odbccp32.lib"
|
||||
OutputFile="./_elementtree_d.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_elementtree_d.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1D100000"
|
||||
ImportLibrary=".\./_elementtree_d.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory=".\."
|
||||
IntermediateDirectory=".\x86-temp-release\_elementtree"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\expat"
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE"
|
||||
StringPooling="true"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="odbccp32.lib"
|
||||
OutputFile="./_elementtree.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_elementtree.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1D100000"
|
||||
ImportLibrary=".\./_elementtree.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseItanium|Win32"
|
||||
OutputDirectory="./."
|
||||
IntermediateDirectory=".\ia64-temp-release\_elementtree"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_ITANIUM"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\expat"
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
|
||||
AdditionalDependencies="odbccp32.lib"
|
||||
OutputFile="./_elementtree.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_elementtree.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1D100000"
|
||||
ImportLibrary=".\./_elementtree.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseAMD64|Win32"
|
||||
OutputDirectory="."
|
||||
IntermediateDirectory="amd64-temp-release\_elementtree"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions=" /USECL:MS_OPTERON /GS-"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\expat"
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE"
|
||||
StringPooling="true"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
|
||||
AdditionalDependencies="odbccp32.lib"
|
||||
OutputFile="./_elementtree.pyd"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\./_elementtree.pdb"
|
||||
SubSystem="2"
|
||||
BaseAddress="0x1D100000"
|
||||
ImportLibrary=".\./_elementtree.lib"
|
||||
TargetMachine="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\Modules\_elementtree.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\expat\xmlparse.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\expat\xmlrole.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Modules\expat\xmltok.c"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue