summaryrefslogtreecommitdiff
path: root/pkg_resources.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove execfile compatibility - unnecessary on Python 2.6+5.8Jason R. Coombs2014-09-181-7/+3
| | | | | --HG-- extra : amend_source : 8a0dcd07e62a327647c834a44fe73b8ebc7b53b9
* Use the term 'string_types', following the pattern in sixJason R. Coombs2014-09-181-7/+8
| | | | | --HG-- extra : amend_source : 3a4aeb2627549c3dfec15067579eccc8e1314de2
* next function and io module are available on Python 2.6Jason R. Coombs2014-09-181-6/+2
|
* Use PY3/PY2 indicators to reliably select behavior. Fixes #237Jason R. Coombs2014-09-181-8/+9
| | | | | --HG-- extra : amend_source : 33f3d298acd39933ccf60810902feb2a5d51c793
* Remove conditional import for frozenset (available in Python 2.6+)Jason R. Coombs2014-09-181-4/+0
|
* Add indicators for PY2 vs. PY3Jason R. Coombs2014-09-181-0/+3
| | | | | --HG-- extra : rebase_source : 549637a713aba52da4c87f1a84436832eba82f1e
* Rename argument for consistencyJason R. Coombs2014-09-091-2/+2
| | | | | --HG-- extra : amend_source : 006c17fc01743ef7f646bf54a166cbaeae92ab75
* Move sister functions into proximityJason R. Coombs2014-09-091-9/+11
|
* Use MemoizedZipManifests for all operations. Fixes #240.5.7Jason R. Coombs2014-08-151-5/+1
|
* Normalize whitespace per more modern style conventions.Jason R. Coombs2014-07-051-41/+55
|
* Avoid trailing comments in pkg_resources.Jason R. Coombs2014-07-051-8/+15
| | | | | --HG-- extra : histedit_source : fba32276bb6acd7b5e44ff596407d10c94c618a9
* Remove commented codeJason R. Coombs2014-07-051-5/+0
| | | | | --HG-- extra : histedit_source : 7600ecd3914abc4767d4296f62b038a6397df673
* Move imports into headerJason R. Coombs2014-07-051-8/+6
| | | | | | --HG-- extra : amend_source : 371b48777dba5d8a4d62b5899944471752f830bd extra : histedit_source : 0739a1da7f11a5f6e348a34b203a9328d0bc0f22
* Make memoized zip manifests opt-in using the ↵Jason R. Coombs2014-07-051-1/+5
| | | | PKG_RESOURCES_CACHE_ZIP_MANIFESTS environment variable. Ref #154.
* Split MemoizedZipManifests from ZipManifests. Ref #154.Jason R. Coombs2014-07-051-15/+23
|
* Create zip_manifests as a class attribute rather than a globalJason R. Coombs2014-07-051-2/+2
| | | | | --HG-- extra : amend_source : 7754d23956c4157235dca41e90f05c29691078ee
* Use a namedtuple to avoid numeric indexesJason R. Coombs2014-06-141-3/+6
|
* Stat is never reusedJason R. Coombs2014-06-141-3/+3
|
* Use a more appropriate name and invoke .load directly.Jason R. Coombs2014-06-141-3/+2
|
* Remove documentation which seems irrelevant to this method.Jason R. Coombs2014-06-141-14/+2
|
* Use direct voiceJason R. Coombs2014-06-141-2/+2
|
* Rewrite construct/append loop with simple iterator.Jason R. Coombs2014-06-141-6/+8
|
* Implement 'build_manifest' as a classmethod. Rename to 'build' because ↵Jason R. Coombs2014-06-141-2/+3
| | | | Manifests is already in the classname.
* Expose a method describing what it does, and alias that to 'call'.Jason R. Coombs2014-06-141-1/+8
|
* Subclass dict rather that wrap and proxy.Jason R. Coombs2014-06-141-7/+4
|
* Remove excess whitespaceJason R. Coombs2014-06-141-1/+1
|
* Must add zipinfo as a propertyPhilip Thiem2014-05-171-0/+4
| | | | | --HG-- extra : rebase_source : 2ae5fa38bd5c9d37b44a010879f2b3a4867c0ee4
* caching the zip manifests Fixes #154Philip Thiem2014-04-161-29/+42
| | | | | --HG-- extra : rebase_source : 0f32792e01b6a1b746a1e07ffa4d7a85eeda1595
* Suppress arguments to __new__. ZipFile doesn't want them, and object ↵Jason R. Coombs2014-05-281-1/+1
| | | | | | | deprecates them. --HG-- extra : amend_source : e41a2567b4174ef2eff09f3aa3f2a7faf214e054
* Update ContextualZipFile to use a single constructorJason R. Coombs2014-05-171-6/+5
|
* Use context managers in pkg_resourcesJason R. Coombs2014-05-171-10/+5
|
* Use ContextualZipFile for context manager supportJason R. Coombs2014-05-171-5/+22
|
* Use context managerJason R. Coombs2014-05-171-4/+1
|
* Use modern syntax for octal valuesJason R. Coombs2014-05-051-2/+2
|
* Avoid trailing commentsJason R. Coombs2014-05-051-47/+92
|
* Fix spacing in __all__Jason R. Coombs2014-05-051-3/+4
|
* Now this syntax fits nicely on one lineJason R. Coombs2014-05-051-4/+1
|
* Remove unnecessary list comprehensionJason R. Coombs2014-05-051-2/+2
|
* Reindent more long lines. Other minor syntax modernization.Jason R. Coombs2014-05-051-21/+39
|
* Reindent long lines in marker implJason R. Coombs2014-05-051-12/+35
|
* Use simpler syntax to get the same infoJason R. Coombs2014-05-051-2/+2
|
* Reindent long lineJason R. Coombs2014-05-051-1/+2
|
* Reformat for consistencyJason R. Coombs2014-05-051-1/+8
|
* Rewrite hashcmp using modern syntaxJason R. Coombs2014-05-051-5/+6
|
* Merge pkg_resources.Environment.__getitem__() code cleanup (pull request #47 ↵Jason R. Coombs2014-05-051-22/+10
|\ | | | | | | and subsequent changes).
| * Remove _sort_dists (unused)Jason R. Coombs2014-05-051-6/+0
| |
| * Correct sort order by using list.sort with support for 'key' and 'reverse'. ↵Jason R. Coombs2014-05-051-2/+2
| | | | | | | | This method is less efficient, but allows the tests to pass.
| * Sort _distmap entries on insert. Obviates need for a cache.Jason R. Coombs2014-05-041-49/+3
| |
| * pkg_resources.Environment.__getitem__() code cleanupJurko Gospodnetić2014-04-151-12/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | Better commented the code, especially the result caching & lazy distribution list sorting strategies implemented there. Added several TODO comments indicating things to look into there in the future. General code cleanup: - stopped reusing the project_name variable for different purposes - added an assertion to detect corrupt distribution list caches --HG-- extra : source : 86ef8f59ef4e1fc253c155b9ca0856497455372d
* | Give comma-separated values a little room to breathe (use common style ↵Jason R. Coombs2014-05-041-115/+115
|/ | | | convention).