Skip to content

Commit

Permalink
Merge pull request #44 from sundeep-co-in/STAGE
Browse files Browse the repository at this point in the history
ZNTA-946: zanata push StringIO fix
  • Loading branch information
definite committed Apr 14, 2016
2 parents c96ce02 + 3765c09 commit 11b74f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
* Web Mar 02 2016 Sundeep Anand <[email protected]>
* Web Apr 13 2016 Sundeep Anand <[email protected]> - 1.5.0
- ZNTA-946 - zanata push StringIO fix
- ZNTA-303 - podir projects handling
- ZNTA-936 - redirection 301, 302 handling
- ZNTA-934 - java-client compatible zanata.xml
- ZNTA-927 - Project Status and Versions
Expand Down
2 changes: 2 additions & 0 deletions zanataclient/zanatalib/projectutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ def _process_map_path(self, map_path):
subdirectory = map_path[:map_path.rfind('/')]
if subdirectory and not os.path.isdir(subdirectory):
os.makedirs(subdirectory)
if '//' in map_path:
map_path = map_path.replace('//', '/')
return map_path

def _apply_standard_mapping_rules(self):
Expand Down
5 changes: 4 additions & 1 deletion zanataclient/zanatalib/rest/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
import os
import sys
import warnings
from io import StringIO
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
warnings.simplefilter("ignore", DeprecationWarning)
import httplib2

Expand Down

0 comments on commit 11b74f6

Please sign in to comment.