Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
satella
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
satella
Commits
358fad94
Commit
358fad94
authored
5 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
bugfix for import_from
parent
e7b22837
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
CHANGELOG.md
+1
-1
1 addition, 1 deletion
CHANGELOG.md
satella/imports.py
+3
-1
3 additions, 1 deletion
satella/imports.py
with
5 additions
and
2 deletions
.gitignore
+
1
−
0
View file @
358fad94
...
...
@@ -13,6 +13,7 @@ tmp/
*.bak
*.swp
*~.nib
tests/lock
.idea/**
.coverage
.vagrant
...
...
This diff is collapsed.
Click to expand it.
CHANGELOG.md
+
1
−
1
View file @
358fad94
# v2.2.12
*
_TBA_
*
bugfix where import_from would not pass all parameters to child calls
# v2.2.11
...
...
This diff is collapsed.
Click to expand it.
satella/imports.py
+
3
−
1
View file @
358fad94
...
...
@@ -52,7 +52,9 @@ def import_from(path: tp.List[str], package_prefix: str, all_: tp.List[str],
module
.
__all__
=
mod_all
import_from
([
os
.
path
.
join
(
path
[
0
],
modname
)],
package_prefix
+
'
.
'
+
modname
,
mod_all
,
module
.
__dict__
,
recursive
=
recursive
,
fail_on_attributerror
=
fail_on_attributerror
),
fail_on_attributerror
=
fail_on_attributerror
,
create_all
=
create_all
,
skip_not_having_all
=
skip_not_having_all
,
skip_single_underscores
=
skip_single_underscores
),
locals
[
modname
]
=
module
if
modname
not
in
all_
:
all_
.
append
(
modname
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment