Moving from govendor to dep, updated dependencies (#48)
* Moving from govendor to dep. * Making the pull request template more friendly. * Fixing akward space in PR template. * goimports run on whole project using ` goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./gen-go/*")` source of command: https://gist.github.com/bgentry/fd1ffef7dbde01857f66
This commit is contained in:
parent
9631aa3aab
commit
8d445c1c77
2186 changed files with 400410 additions and 352 deletions
24
vendor/git.apache.org/thrift.git/test/crossrunner/compat.py
generated
vendored
Normal file
24
vendor/git.apache.org/thrift.git/test/crossrunner/compat.py
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
if sys.version_info[0] == 2:
|
||||
_ENCODE = sys.getfilesystemencoding()
|
||||
|
||||
def path_join(*args):
|
||||
bin_args = map(lambda a: a.decode(_ENCODE), args)
|
||||
return os.path.join(*bin_args).encode(_ENCODE)
|
||||
|
||||
def str_join(s, l):
|
||||
bin_args = map(lambda a: a.decode(_ENCODE), l)
|
||||
b = s.decode(_ENCODE)
|
||||
return b.join(bin_args).encode(_ENCODE)
|
||||
|
||||
logfile_open = open
|
||||
|
||||
else:
|
||||
|
||||
path_join = os.path.join
|
||||
str_join = str.join
|
||||
|
||||
def logfile_open(*args):
|
||||
return open(*args, errors='replace')
|
Loading…
Add table
Add a link
Reference in a new issue