From 1de8af907dbced4fde64ee2c7f57527fc43ad1cc Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 4 Jan 2015 16:07:02 +0100 Subject: Removed unnecessary (non-gitpython) tests and fixed flake8 --- git/repo/base.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'git/repo/base.py') diff --git a/git/repo/base.py b/git/repo/base.py index d1af26e2..dcf98152 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -6,13 +6,22 @@ from git.exc import InvalidGitRepositoryError, NoSuchPathError from git.cmd import Git +from git.refs import ( + HEAD, + Head, + Reference, + TagReference, +) +from git.objects import ( + Submodule, + RootModule, + Commit +) from git.util import ( Actor, finalize_process ) -from git.refs import * from git.index import IndexFile -from git.objects import * from git.config import GitConfigParser from git.remote import ( Remote, @@ -659,7 +668,7 @@ class Repo(object): :return: ``git.Repo`` (the newly created repo)""" if mkdir and path and not os.path.exists(path): - os.makedirs(path, 0755) + os.makedirs(path, 0o755) # git command automatically chdir into the directory git = Git(path) -- cgit v1.2.1