-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move DirectButler.__new__ to a factory function
Moved most of the logic from DirectButler.__new__ into a factory function DirectButler.create_from_config. This allows us to use __new__ as a common constructor shared by create_from_config() and clone(). This will help ensure that any new instance properties we add are correctly set up for all construction paths.
- Loading branch information
Showing
2 changed files
with
74 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters