Project

General

Profile

« Previous | Next » 

Revision 3120

sql.py: DbConn: Added _ to reset() to indicate that it's a protected method and users should not call it directly

View differences:

lib/sql.py
165 165
        self.debug_temp = debug_temp
166 166
        self.autoanalyze = False
167 167
        
168
        self.reset()
168
        self._reset()
169 169
    
170 170
    def __getattr__(self, name):
171 171
        if name == '__dict__': raise Exception('getting __dict__')
......
180 180
    
181 181
    def clear_cache(self): self.query_results = {}
182 182
    
183
    def reset(self):
183
    def _reset(self):
184 184
        self.clear_cache()
185 185
        self._savepoint = 0
186 186
        self._notices_seen = set()
......
192 192
        if not self.connected(): return
193 193
        
194 194
        self.db.close()
195
        self.reset()
195
        self._reset()
196 196
    
197 197
    def _db(self):
198 198
        if self.__db == None:

Also available in: Unified diff