Commit e49327d
committed
Add refresh to top-level __all__
This makes the git.refresh function unambiguously public.
git.refresh was already public in the sense that it was explicitly
documented as appropriate to call from code outside GitPython.
However, it had not been included in git.__all__.
Because __all__ existed but omitted "refresh", git.refresh had
appeared non-public to automated tools.
This also does some cleanup:
- It removes a comment that showed how git.__all__ had been defined
dynamically before gitpython-developers#1659, since with the addition of "refresh",
git.__all__ no longer contains exactly the same elements as that
technique produced (as it examined the module's contents prior to
running the def statement that bound the name "refresh").
- With that comment removed, it is no longer necessary to define
__all__ below the imports to show what the dynamic techinque had
operated on. So this moves it up above them in accordance with
PEP-8.1 parent b8a25df commit e49327d
1 file changed
+31
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 8 | | |
41 | 9 | | |
42 | 10 | | |
| |||
109 | 77 | | |
110 | 78 | | |
111 | 79 | | |
| 80 | + | |
112 | 81 | | |
113 | 82 | | |
114 | 83 | | |
115 | 84 | | |
116 | 85 | | |
117 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
| |||
0 commit comments