Skip to content

Commit 524e198

Browse files
author
Gonchik Tsymzhitov
committed
Fix encoding
1 parent 2a4291e commit 524e198

File tree

10 files changed

+22
-11
lines changed

10 files changed

+22
-11
lines changed

atlassian/bitbucket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# coding: utf8
1+
# coding=utf-8
22
import logging
33
from .rest_client import AtlassianRestAPI
44

atlassian/confluence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# coding: utf8
1+
# coding=utf-8
22
from atlassian import utils
33
from .rest_client import AtlassianRestAPI
44
from requests import HTTPError

atlassian/crowd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# coding: utf8
1+
# coding=utf-8
22
import logging
33
from .rest_client import AtlassianRestAPI
44

atlassian/jira.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# coding: utf8
1+
# coding=utf-8
22
import logging
33
from requests.exceptions import HTTPError
44
from .rest_client import AtlassianRestAPI
@@ -1294,6 +1294,18 @@ def tempo_account_get_customers(self, query=None, count_accounts=None):
12941294
url = 'rest/tempo-accounts/1/customer'
12951295
return self.get(url, params=params)
12961296

1297+
def tempo_account_add_new_customer(self, key, name):
1298+
"""
1299+
Gets all or some Attribute whose key or name contain a specific substring.
1300+
Attributes can be a Category or Customer.
1301+
:param key:
1302+
:param name:
1303+
:return: if error will show in error log, like validation unsuccessful. If success will good.
1304+
"""
1305+
data = {'name': name, 'key': key}
1306+
url = 'rest/tempo-accounts/1/customer'
1307+
return self.post(url, data=data)
1308+
12971309
def tempo_account_add_customer(self, data=None):
12981310
"""
12991311
Gets all or some Attribute whose key or name contain a specific substring.
@@ -1408,7 +1420,6 @@ def tempo_get_default_link_to_project(self, project_id):
14081420
url = 'rest/tempo-accounts/1/link/project/{}/default/'.format(project_id)
14091421
return self.get(url)
14101422

1411-
14121423
"""
14131424
#######################################################################
14141425
# Agile(Formerly Greenhopper) REST API implements #

atlassian/jira8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# coding: utf-8
1+
# coding=utf-8
22
import logging
33
from .rest_client import AtlassianRestAPI
44

atlassian/marketplace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# coding: utf8
1+
# coding=utf-8
22
import logging
33
from .rest_client import AtlassianRestAPI
44

atlassian/portfolio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# coding: utf8
1+
# coding=utf-8
22
import logging
33
from .rest_client import AtlassianRestAPI
44

atlassian/rest_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# coding: utf8
1+
# coding=utf-8
22
import json
33
import logging
44
from six.moves.urllib.parse import urlencode

atlassian/service_desk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# coding: utf8
1+
# coding=utf-8
22
import logging
33
from .rest_client import AtlassianRestAPI
44

atlassian/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# coding: utf8
1+
# coding=utf-8
22
import logging
33
import re
44

0 commit comments

Comments
 (0)