Skip to content

Commit 07fc66d

Browse files
committed
Include all globals in __dir__
Suggestion by Petr Viktorin.
1 parent d9fc16f commit 07fc66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/zoneinfo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def __getattr__(name):
2626

2727

2828
def __dir__():
29-
return sorted(__all__)
29+
return sorted(list(globals()) + ["TZPATH"])

0 commit comments

Comments
 (0)