Skip to content

Commit b91892e

Browse files
committed
py/builtinimport: Formatting fixed.
1 parent cf8bbe0 commit b91892e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

py/builtinimport.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ STATIC mp_import_stat_t stat_top_level_dir_or_file(qstr mod_name, vstr_t *dest)
142142
rest = qstr_str(mod_name);
143143
dot = strchr(rest, '.');
144144
while (dot) {
145-
vstr_add_strn(dest, rest, dot-rest);
145+
vstr_add_strn(dest, rest, dot - rest);
146146
vstr_add_char(dest, PATH_SEP_CHAR[0]);
147-
rest=dot+1;
147+
rest = dot + 1;
148148
dot = strchr(rest, '.');
149149
}
150150
vstr_add_str(dest, rest);

tests/cpydiff/core_import_split_ns_pkgs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
print("Two modules of a split non-namespace package imported")
1717

1818
import subpkg
19+
1920
assert subpkg.one == 1
20-
assert not hasattr(subpkg,"two")
21+
assert not hasattr(subpkg, "two")
2122

2223
print("The first module's __init__ is used")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy