diff options
| author | Hugo <hugovk@users.noreply.github.com> | 2018-03-18 21:33:18 +0200 |
|---|---|---|
| committer | Hugo <hugovk@users.noreply.github.com> | 2018-03-18 22:26:31 +0200 |
| commit | ac4f7d34f8752ab78949efcaa9f0bd938df33622 (patch) | |
| tree | 0c7acd1d3c1e0012d26d610c7a9fe81197e28a5e /git/test/performance | |
| parent | 14582df679a011e8c741eb5dcd8126f883e1bc71 (diff) | |
| download | GitPython-ac4f7d34f8752ab78949efcaa9f0bd938df33622.tar.gz GitPython-ac4f7d34f8752ab78949efcaa9f0bd938df33622.zip | |
Rewrite unnecessary dict/list/tuple calls as literals
Diffstat (limited to 'git/test/performance')
| -rw-r--r-- | git/test/performance/test_odb.py | 4 | ||||
| -rw-r--r-- | git/test/performance/test_streams.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/git/test/performance/test_odb.py b/git/test/performance/test_odb.py index 425af84a..8bd614f2 100644 --- a/git/test/performance/test_odb.py +++ b/git/test/performance/test_odb.py @@ -28,11 +28,11 @@ class TestObjDBPerformance(TestBigRepoR): # GET TREES # walk all trees of all commits st = time() - blobs_per_commit = list() + blobs_per_commit = [] nt = 0 for commit in commits: tree = commit.tree - blobs = list() + blobs = [] for item in tree.traverse(): nt += 1 if item.type == 'blob': diff --git a/git/test/performance/test_streams.py b/git/test/performance/test_streams.py index 3909d8ff..2e3772a0 100644 --- a/git/test/performance/test_streams.py +++ b/git/test/performance/test_streams.py @@ -69,7 +69,7 @@ class TestObjDBPerformance(TestBigRepoR): # reading in chunks of 1 MiB cs = 512 * 1000 - chunks = list() + chunks = [] st = time() ostream = ldb.stream(binsha) while True: |
