Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 4560bb8

Browse files
committed
Cleaned up tabs and space - tabs only now - Python3 ready
1 parent 2a5fd9b commit 4560bb8

3 files changed

Lines changed: 33 additions & 33 deletions

File tree

CloudFlare/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ def _call_with_certauth(self, method, api_call_part1, api_call_part2=None, api_c
4545
def _call(self, method, headers, api_call_part1, api_call_part2=None, api_call_part3=None, identifier1=None, identifier2=None, params=None, data=None):
4646
if api_call_part2 is not None or (data is not None and method == 'GET'):
4747
if identifier2 is None:
48-
url = self.BASE_URL + '/' + api_call_part1 + '/' + identifier1 + '/' + api_call_part2
48+
url = self.BASE_URL + '/' + api_call_part1 + '/' + identifier1 + '/' + api_call_part2
4949
else:
50-
url = self.BASE_URL + '/' + api_call_part1 + '/' + identifier1 + '/' + api_call_part2 + '/' + identifier2
50+
url = self.BASE_URL + '/' + api_call_part1 + '/' + identifier1 + '/' + api_call_part2 + '/' + identifier2
5151
else:
5252
if identifier1 is None:
53-
url = self.BASE_URL + '/' + api_call_part1
53+
url = self.BASE_URL + '/' + api_call_part1
5454
else:
55-
url = self.BASE_URL + '/' + api_call_part1 + '/' + identifier1
55+
url = self.BASE_URL + '/' + api_call_part1 + '/' + identifier1
5656
if api_call_part3:
5757
url += '/' + api_call_part3
5858

CloudFlare/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
class CloudFlareError(Exception):
33
def __init__(self, code, message):
4-
self.code = code
5-
self.message = message
4+
self.code = code
5+
self.message = message
66

77
def __int__(self):
88
return self.code

setup.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,36 @@
44
from setuptools import setup, find_packages
55

66
with open('README.rst') as f:
7-
long_description = f.read()
7+
long_description = f.read()
88

99
setup(
10-
name='cloudflare',
11-
version='1.0.3',
12-
description='Python wrapper for the CloudFlare v4 API',
13-
long_description=long_description,
14-
author='Martin J. Levy',
15-
author_email='martin@cloudflare.com',
16-
maintainer='Martin J. Levy',
17-
maintainer_email='mahtin@mahtin.com',
18-
url='https://github.com/cloudflare/python-cloudflare',
19-
license='MIT',
20-
packages=['cli4']+find_packages(),
21-
install_requires=['requests'],
22-
keywords='cloudflare',
23-
entry_points={
24-
'console_scripts': [
25-
'cli4 = cli4.__main__:main'
10+
name='cloudflare',
11+
version='1.0.3',
12+
description='Python wrapper for the CloudFlare v4 API',
13+
long_description=long_description,
14+
author='Martin J. Levy',
15+
author_email='martin@cloudflare.com',
16+
maintainer='Martin J. Levy',
17+
maintainer_email='mahtin@mahtin.com',
18+
url='https://github.com/cloudflare/python-cloudflare',
19+
license='MIT',
20+
packages=['cli4']+find_packages(),
21+
install_requires=['requests'],
22+
keywords='cloudflare',
23+
entry_points={
24+
'console_scripts': [
25+
'cli4 = cli4.__main__:main'
26+
]
27+
},
28+
classifiers=[
29+
'Development Status :: 5 - Production/Stable',
30+
'Intended Audience :: Developers',
31+
'Topic :: Software Development :: Libraries :: Python Modules',
32+
'License :: OSI Approved :: MIT License',
33+
'Programming Language :: Python :: 2',
34+
'Programming Language :: Python :: 2.6',
35+
'Programming Language :: Python :: 2.7',
2636
]
27-
},
28-
classifiers=[
29-
'Development Status :: 5 - Production/Stable',
30-
'Intended Audience :: Developers',
31-
'Topic :: Software Development :: Libraries :: Python Modules',
32-
'License :: OSI Approved :: MIT License',
33-
'Programming Language :: Python :: 2',
34-
'Programming Language :: Python :: 2.6',
35-
'Programming Language :: Python :: 2.7',
36-
]
3737
)
3838

3939
package_dir = {'CloudFlare': 'lib'}

0 commit comments

Comments
 (0)