File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def is_enabled(self):
75
75
return (
76
76
os .environ .get (DO_NOT_TRACK_ENV , None ) is None and self .enabled ()
77
77
if callable (self .enabled )
78
- else self .enabled and _find_or_create_user_id () is not None
78
+ else self .enabled and find_or_create_user_id () is not None
79
79
)
80
80
81
81
def send (
@@ -153,7 +153,7 @@ def _runtime_info(self):
153
153
# "tool_source": self.tool_source, # TODO
154
154
# "scm_class": _scm_in_use(),
155
155
** _system_info (),
156
- "user_id" : _find_or_create_user_id (),
156
+ "user_id" : find_or_create_user_id (),
157
157
"group_id" : "" , # TODO
158
158
}
159
159
@@ -210,7 +210,7 @@ def _read_user_id_locked(config_file: Path):
210
210
211
211
212
212
@lru_cache (None )
213
- def _find_or_create_user_id ():
213
+ def find_or_create_user_id ():
214
214
"""
215
215
The user's ID is stored on a file under the global config directory.
216
216
The file should contain a JSON with a "user_id" key:
You can’t perform that action at this time.
0 commit comments