Browse Source

minor fix (import stat)

283
ThomasV 10 years ago
parent
commit
171363aa86
  1. 2
      lib/wallet.py

2
lib/wallet.py

@ -126,6 +126,8 @@ class WalletStorage(PrintError):
f.flush() f.flush()
os.fsync(f.fileno()) os.fsync(f.fileno())
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 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 # perform atomic write on POSIX systems
try: try:

Loading…
Cancel
Save