diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-01-12 16:33:36 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-01-12 16:33:36 +0100 |
commit | 460cafb81f86361536077b3b6432237c6ae3d698 (patch) | |
tree | 21b74bd0a492a22e5b9600891fa64be1838a9dcd /git/util.py | |
parent | 6720e8df09a314c3e4ce20796df469838379480d (diff) | |
download | gitpython-460cafb81f86361536077b3b6432237c6ae3d698.tar.gz |
sleep ui hack fix: removed platform.system() to use sys.platform instead, as platform.system makes a system call itself
Diffstat (limited to 'git/util.py')
-rw-r--r-- | git/util.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/git/util.py b/git/util.py index f81e3741..cbb6a66c 100644 --- a/git/util.py +++ b/git/util.py @@ -8,8 +8,8 @@ import os import re import sys import time -import platform import tempfile +import platform from gitdb.util import ( make_sha, @@ -90,7 +90,6 @@ def assure_directory_exists(path, is_file=False): return True return False - def get_user_id(): """:return: string identifying the currently active system user as name@node :note: user can be set with the 'USER' environment variable, usually set on windows""" @@ -106,7 +105,7 @@ def sleep_on_gui_present_osx_crashfix(): #HACK: These two lines are necessary because OSX raises an error if you try to .wait() right after creating the process object. # It is only necessary when using GUI frameworks to instantiate an application. - if platform.system().startswith("Darwin") and "PySide" in sys.modules.keys(): + if sys.platform == "darwin" and "PySide" in sys.modules.keys(): time.sleep(0.1) #} END utilities |