From 094cdbe090a18c35fdcfb463435d793cc0239e83 Mon Sep 17 00:00:00 2001 From: Conley Owens Date: Thu, 30 Jan 2014 15:09:59 -0800 Subject: Add wrapper module This takes the wrapper importing code from main.py and moves it into its own module so that other modules may import it without causing circular imports with main.py. Change-Id: I9402950573933ed6f14ce0bfb600f74f32727705 --- subcmds/sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subcmds/sync.py') diff --git a/subcmds/sync.py b/subcmds/sync.py index e138be05..27c8c728 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -58,13 +58,13 @@ except ImportError: from git_command import GIT, git_require from git_refs import R_HEADS, HEAD -from main import WrapperModule from project import Project from project import RemoteSpec from command import Command, MirrorSafeCommand from error import RepoChangedException, GitError, ManifestParseError from project import SyncBuffer from progress import Progress +from wrapper import Wrapper _ONE_DAY_S = 24 * 60 * 60 @@ -699,7 +699,7 @@ later is required to fix a server side protocol bug. print(self.manifest.notice) def _PostRepoUpgrade(manifest, quiet=False): - wrapper = WrapperModule() + wrapper = Wrapper() if wrapper.NeedSetupGnuPG(): wrapper.SetupGnuPG(quiet) for project in manifest.projects: -- cgit v1.2.3-54-g00ecf