forked from Electron-Cash/Electron-Cash
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import all instances of decimal.Decimal as PyDecimal in codebase
This is a paranoia fix in reference to bug Electron-Cash#1157. Qt 5.12 also exports the 'Decimal' symbol if you import *, and since Qt's imports sometimes appears *after* the python imports, it may win. We are renaming Python decimal.Decimal to PyDecimal in the codebase to allow code to also access the Qt Decimal. Also note that external plugins may be affected. It is hoped that by explicitly renaming the Python Decimal -> PyDecmal in the import, the likelihood of a plugin being hit by this is minimal. We needed to also rename in the lib/ directory (which doesn't normally see the Qt namespace) because some Qt-based plugins import * from lib/ as well as from Qt.
- Loading branch information
Showing
8 changed files
with
60 additions
and
60 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
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
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
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