Replaced obsolete stat module constants with equivalent attributes
diff --git a/Lib/filecmp.py b/Lib/filecmp.py
index f0e6d47..9aee1b3 100644
--- a/Lib/filecmp.py
+++ b/Lib/filecmp.py
@@ -64,9 +64,9 @@
     return outcome
 
 def _sig(st):
-    return (stat.S_IFMT(st[stat.ST_MODE]),
-            st[stat.ST_SIZE],
-            st[stat.ST_MTIME])
+    return (stat.S_IFMT(st.st_mode),
+            st.st_size,
+            st.st_mtime)
 
 def _do_cmp(f1, f2):
     bufsize = BUFSIZE
@@ -199,8 +199,8 @@
                 ok = 0
 
             if ok:
-                a_type = stat.S_IFMT(a_stat[stat.ST_MODE])
-                b_type = stat.S_IFMT(b_stat[stat.ST_MODE])
+                a_type = stat.S_IFMT(a_stat.st_mode)
+                b_type = stat.S_IFMT(b_stat.st_mode)
                 if a_type != b_type:
                     self.common_funny.append(x)
                 elif stat.S_ISDIR(a_type):