diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-01-22 10:54:34 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-01-22 10:56:31 -0500 |
commit | b64339f48280872deec7bb980a61e494f6f38c92 (patch) | |
tree | fe8262b8a6e7ca572cfe8c5c26720670697d8f8d /lib/thandy/repository.py | |
parent | 2068158fd08ca042b874422ee3826f40803f31d8 (diff) |
Fix multiple pychecker-spotted typos.
These are mostly typos in methods that don't get used in the current
Thandy, error in error-handling paths, modules we imported
unnecessarily, etc.
Diffstat (limited to 'lib/thandy/repository.py')
-rw-r--r-- | lib/thandy/repository.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/thandy/repository.py b/lib/thandy/repository.py index bce79fb..6d1ece3 100644 --- a/lib/thandy/repository.py +++ b/lib/thandy/repository.py @@ -8,7 +8,6 @@ json = thandy.util.importJSON() import logging import os -import threading import time MAX_TIMESTAMP_AGE = 3*60*60 @@ -90,20 +89,6 @@ class RepositoryFile: self._main_obj = main_obj self._mtime = mtime - def _save(self, content=None): - """Helper: Flush this object's contents to disk.""" - if content == None: - content = sexpr.encode - - signed_obj,main_obj = self._checkContent(content) - - fname = self.getPath() - thandy.util.replaceFile(fname, contents) - - self._signed_obj = signed_obj - self._main_obj = main_obj - self._mtime = time.time() - def _checkContent(self, content): """Helper. Check whether 'content' matches SIGNED_SCHEMA, and self._schema (as appropraite). Return a tuple of the @@ -279,7 +264,7 @@ class LocalRepository: needRole='bundle') return pkg - def getRequestedFile(self, relPath, pkgSystems=None): + def getRequestedFile(self, relPath): """DOCDOC""" for f in self._metaFiles: if f.getRelativePath() == relPath: |