mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-11-13 15:57:35 +00:00
style: use import collections everywhere
Align with Google style guides and `import collections` as a module rather than import symbols out of it. Change-Id: I165028d5b70a78492e361e6b6f9e3eea19d014b6 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/654805 Reviewed-by: Brian Gan <brgan@google.com> Commit-Queue: Mike Frysinger <vapier@google.com> Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
1 parent
e15b3e0298
commit
caa4cd6564
1 file changed
+3
-3
+3
-3
@@ -14,7 +14,7 @@
|
||||
|
||||
"""Read a worktree's state from one machine-readable git status snapshot."""
|
||||
|
||||
from collections import OrderedDict
|
||||
import collections
|
||||
import os
|
||||
from typing import Iterator, List, Optional, TYPE_CHECKING
|
||||
|
||||
@@ -45,8 +45,8 @@ class StatusSnapshot:
|
||||
"""A consistent view of worktree, index, and branch state."""
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.index_changes = OrderedDict()
|
||||
self.worktree_changes = OrderedDict()
|
||||
self.index_changes = collections.OrderedDict()
|
||||
self.worktree_changes = collections.OrderedDict()
|
||||
self.untracked = []
|
||||
self.branch_oid = None
|
||||
self.branch_head = None
|
||||
|
||||
Reference in new issue
Block a user