version_utils.py
def load(self):
        '''
        Loads from the usercache.json file if it exists, if not an empty one will be generated
        '''
        if not os.path.exists(userCachePath):
            out = open(userCachePath, 'w') 
            json.dump(self._playerCacheList, out)
            out.close()
        f = open(userCachePath, 'r')
        line = f.readline()
        if line.startswith("{"):
            f.close()
            self.__convert()
        f.close()
        try:
            json_in = open(userCachePath)
            self._playerCacheList = json.load(json_in)
        except:
            logger.warning("Usercache.json may be corrupted")
            self._playerCacheList = []
        finally:
            json_in.close()
        self.fixAllOfPodshotsBugs()
        self.refresh_lock = threading.Lock()
        self.player_refreshing = threading.Thread(target=self._refreshAll)
        self.player_refreshing.daemon = True
        self.player_refreshing.start()

        Loads from the usercache.json file if it exists, if not an empty one will be generated
        
Loads from the usercache.json file if it exists, if not an empty one will be generated
Loads from the usercache . json file if it exists if not an empty one will be generated
def load(self):
        if not os.path.exists(userCachePath):
            out = open(userCachePath, 'w') 
            json.dump(self._playerCacheList, out)
            out.close()
        f = open(userCachePath, 'r')
        line = f.readline()
        if line.startswith("{"):
            f.close()
            self.__convert()
        f.close()
        try:
            json_in = open(userCachePath)
            self._playerCacheList = json.load(json_in)
        except:
            logger.warning("Usercache.json may be corrupted")
            self._playerCacheList = []
        finally:
            json_in.close()
        self.fixAllOfPodshotsBugs()
        self.refresh_lock = threading.Lock()
        self.player_refreshing = threading.Thread(target=self._refreshAll)
        self.player_refreshing.daemon = True
        self.player_refreshing.start()
def load ( self ) : if not os . path . exists ( userCachePath ) : out = open ( userCachePath , 'w' ) json . dump ( self . _playerCacheList , out ) out . close ( ) f = open ( userCachePath , 'r' ) line = f . readline ( ) if line . startswith ( "{" ) : f . close ( ) self . __convert ( ) f . close ( ) try : json_in = open ( userCachePath ) self . _playerCacheList = json . load ( json_in ) except : logger . warning ( "Usercache.json may be corrupted" ) self . _playerCacheList = [ ] finally : json_in . close ( ) self . fixAllOfPodshotsBugs ( ) self . refresh_lock = threading . Lock ( ) self . player_refreshing = threading . Thread ( target = self . _refreshAll ) self . player_refreshing . daemon = True self . player_refreshing . start ( )
Loads from the usercache.json file if it exists, if not an empty one will be generated
Loads from the usercache . json file if it exists if not an empty one will be generated
'''
        Loads from the usercache.json file if it exists, if not an empty one will be generated
        '''
self