| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 39335e6 commit 32da7fe
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -169,7 +169,7 @@ class GitConfigParser(with_metaclass(MetaParserBuilder, cp.RawConfigParser, obje | |||
| 169 | 169 | # They must be compatible to the LockFile interface. | |
| 170 | 170 | # A suitable alternative would be the BlockingLockFile | |
| 171 | 171 | t_lock = LockFile | |
| 172 | - re_comment = re.compile('^\s*[#;]') | ||
| 172 | + re_comment = re.compile(r'^\s*[#;]') | ||
| 173 | 173 | ||
| 174 | 174 | #} END configuration | |
| 175 | 175 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -208,7 +208,7 @@ class FetchInfo(object): | |||
| 208 | 208 | NEW_TAG, NEW_HEAD, HEAD_UPTODATE, TAG_UPDATE, REJECTED, FORCED_UPDATE, \ | |
| 209 | 209 | FAST_FORWARD, ERROR = [1 << x for x in range(8)] | |
| 210 | 210 | ||
| 211 | - re_fetch_result = re.compile('^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?') | ||
| 211 | + re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?') | ||
| 212 | 212 | ||
| 213 | 213 | _flag_map = {'!': ERROR, | |
| 214 | 214 | '+': FORCED_UPDATE, | |
@@ -391,7 +391,7 @@ def __init__(self, repo, name): | |||
| 391 | 391 | ||
| 392 | 392 | def __getattr__(self, attr): | |
| 393 | 393 | """Allows to call this instance like | |
| 394 | - remote.special( \*args, \*\*kwargs) to call git-remote special self.name""" | ||
| 394 | + remote.special( \\*args, \\*\\*kwargs) to call git-remote special self.name""" | ||
| 395 | 395 | if attr == "_config_reader": | |
| 396 | 396 | return super(Remote, self).__getattr__(attr) | |
| 397 | 397 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -200,7 +200,7 @@ def git_daemon_launched(base_path, ip, port): | |||
| 200 | 200 | and setting the environment variable GIT_PYTHON_TEST_GIT_DAEMON_PORT to <port> | |
| 201 | 201 | """) | |
| 202 | 202 | if is_win: | |
| 203 | - msg += textwrap.dedent(""" | ||
| 203 | + msg += textwrap.dedent(r""" | ||
| 204 | 204 | ||
| 205 | 205 | On Windows, | |
| 206 | 206 | the `git-daemon.exe` must be in PATH. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -91,7 +91,7 @@ def test_it_transforms_kwargs_into_git_command_arguments(self): | |||
| 91 | 91 | self.assertEqual(set(['-s', '-t']), set(res)) | |
| 92 | 92 | ||
| 93 | 93 | def test_it_executes_git_to_shell_and_returns_result(self): | |
| 94 | - assert_match('^git version [\d\.]{2}.*$', self.git.execute(["git", "version"])) | ||
| 94 | + assert_match(r'^git version [\d\.]{2}.*$', self.git.execute(["git", "version"])) | ||
| 95 | 95 | ||
| 96 | 96 | def test_it_accepts_stdin(self): | |
| 97 | 97 | filename = fixture_path("cat_file_blob") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -411,7 +411,7 @@ def _count_existing(self, repo, files): | |||
| 411 | 411 | # END num existing helper | |
| 412 | 412 | ||
| 413 | 413 | @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and Git.is_cygwin(), | |
| 414 | - """FIXME: File "C:\projects\gitpython\git\test\test_index.py", line 642, in test_index_mutation | ||
| 414 | + """FIXME: File "C:\\projects\\gitpython\\git\\test\\test_index.py", line 642, in test_index_mutation | ||
| 415 | 415 | self.assertEqual(fd.read(), link_target) | |
| 416 | 416 | AssertionError: '!<symlink>\xff\xfe/\x00e\x00t\x00c\x00/\x00t\x00h\x00a\x00t\x00\x00\x00' | |
| 417 | 417 | != '/etc/that' | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -416,7 +416,7 @@ def test_blame_complex_revision(self, git): | |||
| 416 | 416 | self.assertEqual(len(res[0][1]), 83, "Unexpected amount of parsed blame lines") | |
| 417 | 417 | ||
| 418 | 418 | @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and Git.is_cygwin(), | |
| 419 | - """FIXME: File "C:\projects\gitpython\git\cmd.py", line 671, in execute | ||
| 419 | + """FIXME: File "C:\\projects\\gitpython\\git\\cmd.py", line 671, in execute | ||
| 420 | 420 | raise GitCommandError(command, status, stderr_value, stdout_value) | |
| 421 | 421 | GitCommandError: Cmd('git') failed due to: exit code(128) | |
| 422 | 422 | cmdline: git add 1__��ava verb��ten 1_test _myfile 1_test_other_file | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -423,10 +423,10 @@ def test_base_bare(self, rwrepo): | |||
| 423 | 423 | self._do_base_tests(rwrepo) | |
| 424 | 424 | ||
| 425 | 425 | @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and sys.version_info[:2] == (3, 5), """ | |
| 426 | - File "C:\projects\gitpython\git\cmd.py", line 559, in execute | ||
| 426 | + File "C:\\projects\\gitpython\\git\\cmd.py", line 559, in execute | ||
| 427 | 427 | raise GitCommandNotFound(command, err) | |
| 428 | 428 | git.exc.GitCommandNotFound: Cmd('git') not found due to: OSError('[WinError 6] The handle is invalid') | |
| 429 | - cmdline: git clone -n --shared -v C:\projects\gitpython\.git Users\appveyor\AppData\Local\Temp\1\tmplyp6kr_rnon_bare_test_root_module""") # noqa E501 | ||
| 429 | + cmdline: git clone -n --shared -v C:\\projects\\gitpython\\.git Users\\appveyor\\AppData\\Local\\Temp\\1\\tmplyp6kr_rnon_bare_test_root_module""") # noqa E501 | ||
| 430 | 430 | @with_rw_repo(k_subm_current, bare=False) | |
| 431 | 431 | def test_root_module(self, rwrepo): | |
| 432 | 432 | # Can query everything without problems | |
@@ -664,7 +664,7 @@ def test_add_empty_repo(self, rwdir): | |||
| 664 | 664 | # end for each checkout mode | |
| 665 | 665 | ||
| 666 | 666 | @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and Git.is_cygwin(), | |
| 667 | - """FIXME: ile "C:\projects\gitpython\git\cmd.py", line 671, in execute | ||
| 667 | + """FIXME: ile "C:\\projects\\gitpython\\git\\cmd.py", line 671, in execute | ||
| 668 | 668 | raise GitCommandError(command, status, stderr_value, stdout_value) | |
| 669 | 669 | GitCommandError: Cmd('git') failed due to: exit code(128) | |
| 670 | 670 | cmdline: git add 1__Xava verbXXten 1_test _myfile 1_test_other_file 1_XXava-----verbXXten | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,7 +24,7 @@ | |||
| 24 | 24 | class TestTree(TestBase): | |
| 25 | 25 | ||
| 26 | 26 | @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and sys.version_info[:2] == (3, 5), """ | |
| 27 | - File "C:\projects\gitpython\git\cmd.py", line 559, in execute | ||
| 27 | + File "C:\\projects\\gitpython\\git\\cmd.py", line 559, in execute | ||
| 28 | 28 | raise GitCommandNotFound(command, err) | |
| 29 | 29 | git.exc.GitCommandNotFound: Cmd('git') not found due to: OSError('[WinError 6] The handle is invalid') | |
| 30 | 30 | cmdline: git cat-file --batch-check""") | |
@@ -57,7 +57,7 @@ def test_serializable(self): | |||
| 57 | 57 | # END for each item in tree | |
| 58 | 58 | ||
| 59 | 59 | @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and sys.version_info[:2] == (3, 5), """ | |
| 60 | - File "C:\projects\gitpython\git\cmd.py", line 559, in execute | ||
| 60 | + File "C:\\projects\\gitpython\\git\\cmd.py", line 559, in execute | ||
| 61 | 61 | raise GitCommandNotFound(command, err) | |
| 62 | 62 | git.exc.GitCommandNotFound: Cmd('git') not found due to: OSError('[WinError 6] The handle is invalid') | |
| 63 | 63 | cmdline: git cat-file --batch-check""") | |
| Back | FazBrowse Home | New Git URL |
0 commit comments