diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-03-06 22:10:14 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-03-06 22:10:14 +0200 |
commit | 06099ec1fa89c30b41662666d1b1cdcdd64a82e9 (patch) | |
tree | c2f0803bc6dc4b12975915ace491b5ac02a8c2f6 | |
parent | 38e88f256934a46f7ead98917b19092daee1ef11 (diff) | |
download | ick-06099ec1fa89c30b41662666d1b1cdcdd64a82e9.tar.gz |
Move GitSpec class to end of file
It's only used internally in project.py, so there's no need to keep it
up front.
-rw-r--r-- | icklib/project.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/icklib/project.py b/icklib/project.py index c20ba8b..e9b3b5c 100644 --- a/icklib/project.py +++ b/icklib/project.py @@ -34,14 +34,6 @@ import cliapp import icklib -class GitSpec(object): - - def __init__(self, url, branch, subdir): - self.url = url - self.branch = branch - self.subdir = subdir - - class Project(object): def __init__(self, name): @@ -1214,3 +1206,11 @@ def create_git_specs_for_project(project_dict): for git_dict in project_dict['gits']: yield GitSpec( git_dict['git'], git_dict['branch'], git_dict['root']) + + +class GitSpec(object): + + def __init__(self, url, branch, subdir): + self.url = url + self.branch = branch + self.subdir = subdir |