Moving from govendor to dep.

Vendor folder has been deleted. Use dep to regenerate vendor folder.
This commit is contained in:
Renan DelValle 2018-01-02 16:39:22 -08:00
parent 9631aa3aab
commit 03278a882b
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
2181 changed files with 400398 additions and 346 deletions

View 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')