summaryrefslogtreecommitdiff
path: root/gitdb/utils
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into PR-UnicodeEncodeErrorHarmon2020-02-182-59/+3
|\
| * Remove compat.PY3Harmon2020-02-161-3/+0
| |
| * Remove and replace encoding.text_typeHarmon2020-02-161-13/+2
| |
| * Remove and replace encoding.string_typesHarmon2020-02-161-3/+1
| |
| * Remove and replace compat.MAXSIZEHarmon2020-02-161-5/+0
| |
| * Remove and replace compat.to_bytesHarmon2020-02-161-11/+0
| |
| * Remove compat.memoryviewHarmon2020-02-161-5/+0
| |
| * Remove and replace compat.bufferHarmon2020-02-161-10/+0
| |
| * Remove and replace compat.xrangeHarmon2020-02-161-7/+0
| |
| * Remove and replace compat.izipHarmon2020-02-161-2/+0
| |
* | Fix for UnicodeEncodeError in git.Repo.clone_from() when path contains ↵xarx002019-04-051-1/+1
|/ | | | non-ascii characters
* Fixed yet another issue with smmap's latest changesSebastian Thiel2015-01-061-0/+8
| | | | Now we deal with memory views as well ...
* A minor fix after porting git-python over to PY3Sebastian Thiel2015-01-061-1/+1
| | | | It doesn't do anything (in terms of fixing an issue), but it should be more correct than what was there previously
* Applied autopep8Sebastian Thiel2015-01-042-1/+3
| | | | autopep8 -v -j 8 --max-line-length 120 --in-place --recursive
* reduced usage of force_bytes as clients are expected to pass bytes.Sebastian Thiel2014-11-131-5/+1
| | | | | | It was useful for debugging though, maybe an explicit type assertions would help others ? As 'others' will be gitpython, I suppose I can handle it myself
* Now tests work consistently in py2 and 3Sebastian Thiel2014-11-131-3/+1
| | | | It's a nice way of saying that there is still one failing, consistently.
* Fixed all applicable lint issuesSebastian Thiel2014-11-131-2/+8
|
* Made sure xrange is used instead of range in python 2Sebastian Thiel2014-11-131-15/+5
| | | | | | | range in py2 will return a list, which can mean a lot of time and memory is spent on generating it even though it's just used for iteration. Simplified implementation of MAXSIZE
* Start up compat and encoding filesKevin Brown2014-07-163-0/+74
There were a few things which were being reused consistently for compatibility purposes, such as the `buffer`/`memoryview` functions as well as the `izip` method which needed to be aliased for Python 3. The `buffer` function was taken from `smmap` [1] and reworked slightly to handle the optional third parameter. This also adds a compatibility file dedicated entirely to encoding issues, which seem to be the biggest problem. The main functions were taken in part from the Django project [2] and rewritten slightly because our needs are a bit more narrow. A constants file has been added to consistently handle the constants which are required for the gitdb project in the core and the tests. This is part of a greater plan to reorganize the `util.py` file included in this project. This points the async extension back at the original repository and points it to the latest commit. [1]: https://github.com/Byron/smmap/blob/1af4b42a2354acbb53c7956d647655922658fd80/smmap/util.py#L20-L26 [2]: https://github.com/django/django/blob/b8d255071ead897cf68120cd2fae7c91326ca2cc/django/utils/encoding.py