Replaced obsolete stat module constants with equivalent attributes
diff --git a/Lib/mhlib.py b/Lib/mhlib.py
index 912f001..feb554e 100644
--- a/Lib/mhlib.py
+++ b/Lib/mhlib.py
@@ -74,7 +74,6 @@
import os
import sys
-from stat import ST_NLINK
import re
import mimetools
import multifile
@@ -155,8 +154,7 @@
fullname = os.path.join(self.path, name)
# Get the link count so we can avoid listing folders
# that have no subfolders.
- st = os.stat(fullname)
- nlinks = st[ST_NLINK]
+ nlinks = os.stat(fullname).st_nlink
if nlinks <= 2:
return []
subfolders = []
@@ -183,8 +181,7 @@
fullname = os.path.join(self.path, name)
# Get the link count so we can avoid listing folders
# that have no subfolders.
- st = os.stat(fullname)
- nlinks = st[ST_NLINK]
+ nlinks = os.stat(fullname).st_nlink
if nlinks <= 2:
return []
subfolders = []