| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -135,6 +135,7 @@ def dict_to_slots_and__excluded_are_none(self, d, excluded=()): | |||
| 135 | 135 | ||
| 136 | 136 | ## -- End Utilities -- @} | |
| 137 | 137 | ||
| 138 | + | ||
| 138 | 139 | # value of Windows process creation flag taken from MSDN | |
| 139 | 140 | CREATE_NO_WINDOW = 0x08000000 | |
| 140 | 141 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,14 +17,14 @@ | |||
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | 19 | class RootUpdateProgress(UpdateProgress): | |
| 20 | - | ||
| 21 | 20 | """Utility class which adds more opcodes to the UpdateProgress""" | |
| 22 | 21 | REMOVE, PATHCHANGE, BRANCHCHANGE, URLCHANGE = [ | |
| 23 | 22 | 1 << x for x in range(UpdateProgress._num_op_codes, UpdateProgress._num_op_codes + 4)] | |
| 24 | 23 | _num_op_codes = UpdateProgress._num_op_codes + 4 | |
| 25 | 24 | ||
| 26 | 25 | __slots__ = tuple() | |
| 27 | 26 | ||
| 27 | + | ||
| 28 | 28 | BEGIN = RootUpdateProgress.BEGIN | |
| 29 | 29 | END = RootUpdateProgress.END | |
| 30 | 30 | REMOVE = RootUpdateProgress.REMOVE | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,12 +29,12 @@ | |||
| 29 | 29 | ||
| 30 | 30 | ||
| 31 | 31 | class TestRootProgress(RootUpdateProgress): | |
| 32 | - | ||
| 33 | 32 | """Just prints messages, for now without checking the correctness of the states""" | |
| 34 | 33 | ||
| 35 | 34 | def update(self, op, cur_count, max_count, message=''): | |
| 36 | 35 | print(op, cur_count, max_count, message) | |
| 37 | 36 | ||
| 37 | + | ||
| 38 | 38 | prog = TestRootProgress() | |
| 39 | 39 | ||
| 40 | 40 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -940,6 +940,7 @@ class NullHandler(logging.Handler): | |||
| 940 | 940 | def emit(self, record): | |
| 941 | 941 | pass | |
| 942 | 942 | ||
| 943 | + | ||
| 943 | 944 | # In Python 2.6, there is no NullHandler yet. Let's monkey-patch it for a workaround. | |
| 944 | 945 | if not hasattr(logging, 'NullHandler'): | |
| 945 | 946 | logging.NullHandler = NullHandler | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,6 +64,7 @@ def _stamp_version(filename): | |||
| 64 | 64 | else: | |
| 65 | 65 | print("WARNING: Couldn't find version line in file %s" % filename, file=sys.stderr) | |
| 66 | 66 | ||
| 67 | + | ||
| 67 | 68 | install_requires = ['gitdb2 >= 2.0.0'] | |
| 68 | 69 | extras_require = { | |
| 69 | 70 | ':python_version == "2.6"': ['ordereddict'], | |
| Back | FazBrowse Home | New Git URL |
0 commit comments