Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Switch dist to focal. (#356) | Benjamin Peterson | 2021-05-05 | 1 | -1/+12 |
| | |||||
* | Add assertNotRegex. (#289) | Jonathan Vanasco | 2020-01-08 | 1 | -0/+11 |
| | | | | | | Fixes #288. Co-authored-by: Benjamin Peterson <benjamin@python.org> | ||||
* | Drop support for EOL Python 2.6 and 3.2. (#314) | Hugo van Kemenade | 2020-01-07 | 1 | -47/+6 |
| | | | | | | | Fixes #308. Stops testing them on the CI, update python_requries and remove some code specifically for those versions. Not done anything to remove any six functionality that's only a benefit on those versions, that should be in a separate PR and would be a breaking change that should ideally deprecate first. | ||||
* | Fix wraps handing of missing attrs. (#251) | immerrr again | 2020-01-06 | 1 | -4/+23 |
| | | | | | | | | | This is pretty-much a straight backport of Py3 implementations of update_wrapper and (privately) wraps. Fixes #250 Fixes #165 Co-authored-by: Benjamin Peterson <benjamin@python.org> | ||||
* | 10 years of six! | Benjamin Peterson | 2020-01-06 | 1 | -1/+1 |
| | |||||
* | Remove unused inner function. (#310) | Thomas Grainger | 2019-11-14 | 1 | -8/+0 |
| | |||||
* | py.test -> pytest | Benjamin Peterson | 2019-11-04 | 1 | -46/+46 |
| | |||||
* | Add support for PEP 560. (#305) | Ivan Levkivskyi | 2019-11-04 | 1 | -0/+48 |
| | |||||
* | Increment copyright year. | Benjamin Peterson | 2019-06-18 | 1 | -1/+1 |
| | |||||
* | Make add_metaclass copy __qualname__ from the original class. (#260) | E. M. Bray | 2018-10-03 | 1 | -0/+20 |
| | | | | Fixes #259. | ||||
* | add ensure_binary/str/text helper functions (#204) | Jingxin Zhu | 2018-01-25 | 1 | -0/+58 |
| | |||||
* | bump copyright year | Benjamin Peterson | 2018-01-21 | 1 | -1/+1 |
| | |||||
* | add test for metaclass subclasses | Benjamin Peterson | 2017-09-17 | 1 | -0/+8 |
| | |||||
* | Define __prepare__() in with_metaclass() (#178) | Jordan Moldow | 2017-09-17 | 1 | -0/+28 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Define `__prepare__()` in `with_metaclass()`'s temporary metaclass, and make sure that it passes the correct bases to the real metaclass's `__prepare__()`. The temporary metaclass previously didn't extend the `__prepare__()` method, which meant that if the real metaclass had a `__prepare__()`, it wouldn't get called correctly. This could lead to bugs in Python 3 code. The temporary metaclass's `__prepare__()` gets called with ```bases=(temporary_class,)```. Since there was no proxy in the middle, that was getting passed directly to the real metaclass's `__prepare__()`. But then, if the real class's `__prepare__()` method depended on the bases, the logic would be incorrect. This was a problem in projects that use `enum` / `enum34` and try to use `with_metaclass(EnumMeta)`. `enum34.EnumMeta` doesn't define `__prepare__()`, since it is a Python 2 backport. Python 3's `enum.EnumMeta` does define `__prepare__()`, but originally didn't depend at all on the bases. But starting in Python 3.6, `enum.EnumMeta.__prepare__()` will raise `TypeError` if the bases aren't valid for an enum subclass. Thus, a codebase that was successfully using `enum` / `enum34` and `with_metaclass(EnumMeta)` could break on Python 3.6. | ||||
* | remove moves.getstatusoutput | Benjamin Peterson | 2017-08-27 | 1 | -7/+0 |
| | | | | | Compatibility of Python getstatusoutput was broken in 3.3.4, so a simple renaming indirection doesn't suffice. See #207. | ||||
* | Add moves for getoutput and getstatusoutput. | Lucas Wiman | 2017-02-28 | 1 | -0/+13 |
| | |||||
* | update copyright year | Benjamin Peterson | 2017-01-02 | 1 | -1/+1 |
| | |||||
* | add 2016 to copyright years | Benjamin Peterson | 2016-01-31 | 1 | -1/+1 |
| | |||||
* | add License goop to all python files (fixes #137) | Benjamin Peterson | 2015-10-20 | 1 | -0/+20 |
| | |||||
* | improve performance of int2byte on python 3 (fixes #122) | Benjamin Peterson | 2015-03-21 | 1 | -1/+1 |
| | |||||
* | Merged in bartvm/six/create_unbound_method (pull request #64) | Benjamin Peterson | 2015-03-20 | 1 | -0/+14 |
|\ | | | | | | | Introduces a wrapper to create unbound methods. | ||||
| * | Added tests | Bart van Merrienboer | 2015-01-21 | 1 | -0/+14 |
| | | |||||
* | | Specify skipif condition as strings | derekhiggins | 2015-03-19 | 1 | -1/+1 |
| | | | | | | | | Specifying all conditions as strings is more consistent and will allow tests to pass on pytest < 2.4. | ||||
* | | fix tests on Python 3.1 (fixes #113) | Benjamin Peterson | 2015-01-22 | 1 | -1/+1 |
|/ | | | | Patch by Arfrever Frehtes Taifersar Arahesis. | ||||
* | support the flush parameter of print_ (fixes #106) | Benjamin Peterson | 2015-01-02 | 1 | -0/+11 |
| | |||||
* | assertRegex and assertRaisesRegex are 2.7+ only, too | Benjamin Peterson | 2015-01-02 | 1 | -0/+2 |
| | |||||
* | Merged in graingert/six (pull request #48) | Benjamin Peterson | 2015-01-02 | 1 | -0/+21 |
|\ | |||||
| * | add tests for python_2_unicode_comapatible | Thomas Grainger | 2014-09-16 | 1 | -0/+21 |
| | | |||||
* | | Merged in timograham/six (pull request #57) | Benjamin Peterson | 2015-01-02 | 1 | -0/+37 |
|\ \ | | | | | | | | | | Added unittest aliases. | ||||
| * | | Added unittest aliases. | Tim Graham | 2014-11-25 | 1 | -0/+37 |
| | | | |||||
* | | | add test for issue #105 | Benjamin Peterson | 2014-12-09 | 1 | -0/+12 |
|/ / | |||||
* | | add raise_from (fixes #102) | Benjamin Peterson | 2014-10-29 | 1 | -0/+21 |
| | | | | | | | | Patch from Robert Collins. | ||||
* | | It's skipIf, not skipif | Brett Cannon | 2014-10-10 | 1 | -2/+2 |
| | | |||||
* | | Drop kwargs tests for view* | Brett Cannon | 2014-10-10 | 1 | -15/+2 |
| | | |||||
* | | Address PR comments | Brett Cannon | 2014-10-05 | 1 | -14/+16 |
| | | |||||
* | | Introduce viewkeys(), viewvalues(), and viewitems(). | Brett Cannon | 2014-10-03 | 1 | -0/+29 |
|/ | | | | Closes issue #92 | ||||
* | fix add_metaclass when there is a __weakref__ or __dict__ slot (closes #88) | Benjamin Peterson | 2014-08-17 | 1 | -0/+4 |
| | |||||
* | instantiate the exception if the value is None (fixes #86) | Benjamin Peterson | 2014-08-02 | 1 | -0/+8 |
| | |||||
* | Merged in harlowja/six (pull request #32) | Benjamin Peterson | 2014-04-30 | 1 | -0/+18 |
|\ | | | | | | | Add a wraps helper | ||||
| * | Add a test for wraps | Joshua Harlow | 2014-04-28 | 1 | -0/+18 |
| | | |||||
* | | Test to ensure that with_metaclass() does not insert any intermediary bases | Ben Davis | 2014-04-26 | 1 | -0/+1 |
|/ | |||||
* | Stop referencing deleted private attrs in test_dictionary_iterators. | Erik Rose | 2014-03-19 | 1 | -3/+12 |
| | |||||
* | raise an AttributeError for six.moves.X when X is a module not available in ↵ | Benjamin Peterson | 2014-03-13 | 1 | -1/+2 |
| | | | | | | the current interpreter As discussed in https://github.com/pypa/pip/issues/1643. | ||||
* | correct version check (fixes #52) | Benjamin Peterson | 2014-01-05 | 1 | -1/+1 |
| | |||||
* | fix test on Python 3 | Benjamin Peterson | 2014-01-04 | 1 | -2/+2 |
| | |||||
* | consolidate and rename tests | Benjamin Peterson | 2014-01-04 | 1 | -4/+1 |
| | |||||
* | Merge upstream default into issue_19 | Marc Abramowitz | 2014-01-04 | 1 | -12/+66 |
|\ | |||||
| * | Merged in alexanderlukanin13/six/urllib_import_weirdness (pull request #22) | Benjamin Peterson | 2014-01-04 | 1 | -0/+20 |
| |\ | | | | | | | | | | moves import bug fixed | ||||
| | * | moves import bug fixed | alexanderlukanin13 | 2013-11-07 | 1 | -0/+20 |
| | | | |||||
| * | | add mapping for ttk (fixes #49) | Benjamin Peterson | 2014-01-04 | 1 | -2/+5 |
| | | |