Skip to content

Commit 274c5f3

Browse files
committed
BF(PY3): use 0o not 0 prefix for octal mode numbers
1 parent b63b472 commit 274c5f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nibabel/cmdline/dicomfs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def getattr(self, path):
115115
now = time.time()
116116
st = fuse.Stat()
117117
if isinstance(matched_path, dict):
118-
st.st_mode = stat.S_IFDIR | 0755
118+
st.st_mode = stat.S_IFDIR | 0o755
119119
st.st_ctime = now
120120
st.st_mtime = now
121121
st.st_atime = now
@@ -124,7 +124,7 @@ def getattr(self, path):
124124
st.st_nlink = len(matched_path)
125125
return st
126126
if isinstance(matched_path, str):
127-
st.st_mode = stat.S_IFREG | 0644
127+
st.st_mode = stat.S_IFREG | 0o644
128128
st.st_ctime = now
129129
st.st_mtime = now
130130
st.st_atime = now
@@ -134,7 +134,7 @@ def getattr(self, path):
134134
st.st_nlink = 1
135135
return st
136136
if isinstance(matched_path, tuple):
137-
st.st_mode = stat.S_IFREG | 0644
137+
st.st_mode = stat.S_IFREG | 0o644
138138
st.st_ctime = now
139139
st.st_mtime = now
140140
st.st_atime = now

0 commit comments

Comments
 (0)