| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 460cafb commit b4b50e7
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -87,7 +87,6 @@ def wait(self): | |||
| 87 | 87 | """Wait for the process and return its status code. | |
| 88 | 88 | ||
| 89 | 89 | :raise GitCommandError: if the return status is not 0""" | |
| 90 | - sleep_on_gui_present_osx_crashfix() | ||
| 91 | 90 | status = self.proc.wait() | |
| 92 | 91 | if status != 0: | |
| 93 | 92 | raise GitCommandError(self.args, status, self.proc.stderr.read()) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,6 @@ | |||
| 11 | 11 | ||
| 12 | 12 | from gitdb.util import hex_to_bin | |
| 13 | 13 | ||
| 14 | - from util import sleep_on_gui_present_osx_crashfix | ||
| 15 | 14 | ||
| 16 | 15 | __all__ = ('Diffable', 'DiffIndex', 'Diff') | |
| 17 | 16 | ||
@@ -101,7 +100,6 @@ def diff(self, other=Index, paths=None, create_patch=False, **kwargs): | |||
| 101 | 100 | diff_method = Diff._index_from_patch_format | |
| 102 | 101 | index = diff_method(self.repo, proc.stdout) | |
| 103 | 102 | ||
| 104 | - sleep_on_gui_present_osx_crashfix() | ||
| 105 | 103 | status = proc.wait() | |
| 106 | 104 | return index | |
| 107 | 105 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ | |||
| 21 | 21 | ) | |
| 22 | 22 | ||
| 23 | 23 | __all__ = ( "stream_copy", "join_path", "to_native_path_windows", "to_native_path_linux", | |
| 24 | - "join_path_native", "sleep_on_gui_present_osx_crashfix", "Stats", "IndexFileSHA1Writer", "Iterable", "IterableList", | ||
| 24 | + "join_path_native", "Stats", "IndexFileSHA1Writer", "Iterable", "IterableList", | ||
| 25 | 25 | "BlockingLockFile", "LockFile", 'Actor', 'get_user_id', 'assure_directory_exists', | |
| 26 | 26 | 'RemoteProgress') | |
| 27 | 27 | ||
@@ -100,14 +100,6 @@ def get_user_id(): | |||
| 100 | 100 | # END get username from login | |
| 101 | 101 | return "%s@%s" % (username, platform.node()) | |
| 102 | 102 | ||
| 103 | - def sleep_on_gui_present_osx_crashfix(): | ||
| 104 | - """This fixes a crash which appears when using pyside on OS X.""" | ||
| 105 | - | ||
| 106 | - #HACK: These two lines are necessary because OSX raises an error if you try to .wait() right after creating the process object. | ||
| 107 | - # It is only necessary when using GUI frameworks to instantiate an application. | ||
| 108 | - if sys.platform == "darwin" and "PySide" in sys.modules.keys(): | ||
| 109 | - time.sleep(0.1) | ||
| 110 | - | ||
| 111 | 103 | #} END utilities | |
| 112 | 104 | ||
| 113 | 105 | #{ Classes | |
| Back | FazBrowse Home | New Git URL |
0 commit comments