mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
minor fix (import stat)
This commit is contained in:
parent
a9f451decd
commit
171363aa86
1 changed files with 3 additions and 1 deletions
|
@ -126,7 +126,9 @@ class WalletStorage(PrintError):
|
||||||
f.flush()
|
f.flush()
|
||||||
os.fsync(f.fileno())
|
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
|
# perform atomic write on POSIX systems
|
||||||
try:
|
try:
|
||||||
os.rename(temp_path, self.path)
|
os.rename(temp_path, self.path)
|
||||||
|
|
Loading…
Add table
Reference in a new issue