electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 171363aa86bfead76f94e4ac9210dcdeb18b96ef
parent a9f451decd3d967ab3e6199999ba02acee9e816b
Author: ThomasV <thomasv@electrum.org>
Date:   Tue, 20 Oct 2015 13:57:43 +0200

minor fix (import stat)

Diffstat:
Mlib/wallet.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -126,7 +126,9 @@ class WalletStorage(PrintError): f.flush() os.fsync(f.fileno()) - mode = os.stat(self.path).st_mode if os.path.exists(self.path) else stat.S_IREAD | stat.S_IWRITE + if 'ANDROID_DATA' not in os.environ: + import stat + mode = os.stat(self.path).st_mode if os.path.exists(self.path) else stat.S_IREAD | stat.S_IWRITE # perform atomic write on POSIX systems try: os.rename(temp_path, self.path)