
import os

def newer(file1, file2):
    file1_creation = os.stat(file1).st_mtime
    file2_creation = os.stat(file2).st_mtime
    return file1_creation > file2_creation

def nullstrip(file):
    for line in file:
        if line.rstrip() and line[0] != "#":
            yield line



import os

def newer(file1, file2):
    file1_modification = os.stat(file1).st_mtime
    file2_modification = os.stat(file2).st_mtime
    return file1_modification > file2_modification

def nullstrip(file):
    for line in file:
        if line.rstrip() and line[0] != "#":
            yield line


Use modification, not creation times to determine relative newness.
Use modification, not creation times to determine relative newness.

  
  import os
  
  def newer(file1, file2):
-     file1_creation = os.stat(file1).st_mtime
+     file1_modification = os.stat(file1).st_mtime
-     file2_creation = os.stat(file2).st_mtime
+     file2_modification = os.stat(file2).st_mtime
-     return file1_creation > file2_creation
+     return file1_modification > file2_modification
  
  def nullstrip(file):
      for line in file:
          if line.rstrip() and line[0] != "#":
              yield line
  
  
Use modification, not creation times to determine relative newness.
## Code Before:

import os

def newer(file1, file2):
    file1_creation = os.stat(file1).st_mtime
    file2_creation = os.stat(file2).st_mtime
    return file1_creation > file2_creation

def nullstrip(file):
    for line in file:
        if line.rstrip() and line[0] != "#":
            yield line


## Instruction:
Use modification, not creation times to determine relative newness.
## Code After:

import os

def newer(file1, file2):
    file1_modification = os.stat(file1).st_mtime
    file2_modification = os.stat(file2).st_mtime
    return file1_modification > file2_modification

def nullstrip(file):
    for line in file:
        if line.rstrip() and line[0] != "#":
            yield line

