URI: 
       tminor fix (import stat) - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 171363aa86bfead76f94e4ac9210dcdeb18b96ef
   DIR parent a9f451decd3d967ab3e6199999ba02acee9e816b
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Tue, 20 Oct 2015 13:57:43 +0200
       
       minor fix (import stat)
       
       Diffstat:
         M lib/wallet.py                       |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -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)