diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-08-02 18:02:50 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-08-02 18:44:02 +0300 |
commit | 0b6bfe1d217b85cb926724949bd32d20bbfe5d06 (patch) | |
tree | 125858dbbb4541edbe6e9c3f31beef54e2087269 /obnamlib/fmt_ga/client.py | |
parent | 6ab9df99f78ee878da9cc376c89dc120c7748d0b (diff) | |
download | obnam-0b6bfe1d217b85cb926724949bd32d20bbfe5d06.tar.gz |
Move method closer to first use, for clarity
Diffstat (limited to 'obnamlib/fmt_ga/client.py')
-rw-r--r-- | obnamlib/fmt_ga/client.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/obnamlib/fmt_ga/client.py b/obnamlib/fmt_ga/client.py index 6dd0f0b1..57b77e54 100644 --- a/obnamlib/fmt_ga/client.py +++ b/obnamlib/fmt_ga/client.py @@ -32,6 +32,12 @@ class GAClient(object): self._current_time = None self.clear() + def clear(self): + self._blob_store = None + self._client_keys = GAKeys() + self._generations = GAGenerationList() + self._data_is_loaded = False + def set_current_time(self, current_time): self._current_time = current_time @@ -44,12 +50,6 @@ class GAClient(object): def get_dirname(self): return self._dirname - def clear(self): - self._blob_store = None - self._client_keys = GAKeys() - self._generations = GAGenerationList() - self._data_is_loaded = False - def commit(self): self._load_data() self._finish_current_generation_if_any() |