def _generate_storage_paths(app_id):
 if (sys.platform == 'win32'):
  user_format = ''
 else:
  try:
   user_name = getpass.getuser()
  except Exception:
   user_format = ''
  else:
   user_format = ('.%s' % user_name)
 tempdir = tempfile.gettempdir()
 (yield os.path.join(tempdir, ('appengine.%s%s' % (app_id, user_format))))
 for i in itertools.count(1):
  (yield os.path.join(tempdir, ('appengine.%s%s.%d' % (app_id, user_format, i))))

def _generate_storage_paths ( app_id ) : if ( sys . platform == 'win32' ) : user_format = '' else : try : user_name = getpass . getuser ( ) except Exception : user_format = '' else : user_format = ( '.%s' % user_name ) tempdir = tempfile . gettempdir ( ) ( yield os . path . join ( tempdir , ( 'appengine.%s%s' % ( app_id , user_format ) ) ) ) for i in itertools . count ( 1 ) : ( yield os . path . join ( tempdir , ( 'appengine.%s%s.%d' % ( app_id , user_format , i ) ) ) )
yield an infinite sequence of possible storage paths .