Skip to content

Commit

Permalink
Fix windows unicode issues (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxredux committed Aug 23, 2017
1 parent 3eeb372 commit 6f42b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import unicode_literals, print_function
from __future__ import print_function

import os
import json
Expand Down Expand Up @@ -114,7 +114,7 @@ def create_remote_repo():
namespace_id = namespace.get('id', '')
if namespace_id:
REMOTE_REPO_DATA.update({'namespace_id': namespace_id})
data = unicode(urllib.urlencode(REMOTE_REPO_DATA))
data = urllib.urlencode(REMOTE_REPO_DATA)
requests.post(GITLAB_PROJECTS_URL, data=data, headers=GITLAB_TOKEN_HEADER)

{% elif cookiecutter.remote_provider == 'bitbucket.org' %}
Expand Down

0 comments on commit 6f42b22

Please sign in to comment.