summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-01-12 17:30:11 +0100
committerSebastian Thiel <byronimo@gmail.com>2011-01-12 17:45:33 +0100
commitb4b50e7348815402634b6b559b48191dba00a751 (patch)
tree4b786e80409d08c26c98289dc1de20b6b3136d55 /git/util.py
parent460cafb81f86361536077b3b6432237c6ae3d698 (diff)
downloadgitpython-b4b50e7348815402634b6b559b48191dba00a751.tar.gz
OSX Signal handling: removed previous hack to fix it somehow using sleep - the error was caused by PySide which, when instantiating a QApplication, changed the signal handlers to interrupt, instead of retry operating system calls, which caused git-python to fail subsequently. signal.siginterrupt can be used to fix this behaviour after an QApplication was instatiated.
Diffstat (limited to 'git/util.py')
-rw-r--r--git/util.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/git/util.py b/git/util.py
index cbb6a66c..7cbef07f 100644
--- a/git/util.py
+++ b/git/util.py
@@ -21,7 +21,7 @@ from gitdb.util import (
)
__all__ = ( "stream_copy", "join_path", "to_native_path_windows", "to_native_path_linux",
- "join_path_native", "sleep_on_gui_present_osx_crashfix", "Stats", "IndexFileSHA1Writer", "Iterable", "IterableList",
+ "join_path_native", "Stats", "IndexFileSHA1Writer", "Iterable", "IterableList",
"BlockingLockFile", "LockFile", 'Actor', 'get_user_id', 'assure_directory_exists',
'RemoteProgress')
@@ -100,14 +100,6 @@ def get_user_id():
# END get username from login
return "%s@%s" % (username, platform.node())
-def sleep_on_gui_present_osx_crashfix():
- """This fixes a crash which appears when using pyside on OS X."""
-
- #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 sys.platform == "darwin" and "PySide" in sys.modules.keys():
- time.sleep(0.1)
-
#} END utilities
#{ Classes