def EndFile(self):
    if self._current_file_data:
      info = tarfile.TarInfo(self._current_file_name)
      info.mtime = time.time()
      info.mode = 0644
      data = self._current_file_data.getvalue()
      if isinstance(data, unicode):
        data = data.encode('utf-8')
      info.size = len(data)
      self._tar.addfile(info, BytesIO(data))
      self._current_file_data.close()
      self._current_file_data = None
default: django-admin can't execute user commands if it isn't provided settings
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/filesys/tar_library_package.py/TarLibraryPackage.EndFile--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/admin_scripts/tests.py/DjangoAdminDefaultSettings.test_custom_command