Skip to content

Commit 7ea85f8

Browse files
committed
Convert to Python3
1 parent c94718a commit 7ea85f8

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

doc/conf.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
master_doc = 'index'
4141

4242
# General information about the project.
43-
project = u'pastebin_python'
44-
copyright = u'2013, Ferdinand Silva'
43+
project = 'pastebin_python'
44+
copyright = '2013, Ferdinand Silva'
4545

4646
# The version info for the project you're documenting, acts as replacement for
4747
# |version| and |release|, also used in various other places throughout the
@@ -183,8 +183,8 @@
183183
# Grouping the document tree into LaTeX files. List of tuples
184184
# (source start file, target name, title, author, documentclass [howto/manual]).
185185
latex_documents = [
186-
('index', 'pastebin_python.tex', u'pastebin\\_python Documentation',
187-
u'Ferdinand Silva', 'manual'),
186+
('index', 'pastebin_python.tex', 'pastebin\\_python Documentation',
187+
'Ferdinand Silva', 'manual'),
188188
]
189189

190190
# The name of an image file (relative to this directory) to place at the top of
@@ -213,8 +213,8 @@
213213
# One entry per manual page. List of tuples
214214
# (source start file, name, description, authors, manual section).
215215
man_pages = [
216-
('index', 'pastebin_python', u'pastebin_python Documentation',
217-
[u'Ferdinand Silva'], 1)
216+
('index', 'pastebin_python', 'pastebin_python Documentation',
217+
['Ferdinand Silva'], 1)
218218
]
219219

220220
# If true, show URL addresses after external links.
@@ -227,8 +227,8 @@
227227
# (source start file, target name, title, author,
228228
# dir menu entry, description, category)
229229
texinfo_documents = [
230-
('index', 'pastebin_python', u'pastebin_python Documentation',
231-
u'Ferdinand Silva', 'pastebin_python', 'One line description of project.',
230+
('index', 'pastebin_python', 'pastebin_python Documentation',
231+
'Ferdinand Silva', 'pastebin_python', 'One line description of project.',
232232
'Miscellaneous'),
233233
]
234234

pastebin_python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.. moduleauthor:: Ferdinand Silva <[email protected]>
44
55
"""
6-
from pastebin import PastebinPython
6+
from .pastebin import PastebinPython
77

88
__version__ = "1.2"
99
__app_name__ = "pastebin_python"

pastebin_python/pastebin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import re
99
import requests
1010
from xml.dom.minidom import parseString
11-
from pastebin_options import OPTION_PASTE, OPTION_LIST, OPTION_TRENDS, OPTION_DELETE, OPTION_USER_DETAILS
12-
from pastebin_constants import PASTEBIN_API_POST_URL, PASTEBIN_API_LOGIN_URL, PASTEBIN_RAW_URL
13-
from pastebin_exceptions import PastebinBadRequestException, PastebinNoPastesException, PastebinFileException, PastebinHTTPErrorException
11+
from .pastebin_options import OPTION_PASTE, OPTION_LIST, OPTION_TRENDS, OPTION_DELETE, OPTION_USER_DETAILS
12+
from .pastebin_constants import PASTEBIN_API_POST_URL, PASTEBIN_API_LOGIN_URL, PASTEBIN_RAW_URL
13+
from .pastebin_exceptions import PastebinBadRequestException, PastebinNoPastesException, PastebinFileException, PastebinHTTPErrorException
1414

1515

1616
class PastebinPython(object):
@@ -88,7 +88,7 @@ def createPaste(self, api_paste_code, api_paste_name='', api_paste_format='', ap
8888

8989
localVar = locals()
9090

91-
for k, v in localVar.items():
91+
for k, v in list(localVar.items()):
9292
if re.search('^api_',k) and v != "":
9393
postData[k] = v
9494

0 commit comments

Comments
 (0)