Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# If your documentation needs a minimal Sphinx version, state it here.
needs_sphinx = '1.4'
if needs_sphinx > sphinx.__display_version__:
message = 'This project needs at least Sphinx v%s' % needs_sphinx
message = 'This project needs at least Sphinx v{0!s}'.format(needs_sphinx)
raise VersionRequirementError(message)

# Add any Sphinx extension module names here, as strings. They can be
Expand Down
4 changes: 2 additions & 2 deletions pygem/filehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _check_extension(self, filename):
__, file_ext = os.path.splitext(filename)
if not file_ext in self.extension:
raise ValueError('The input file does not have the proper extension. \
It is %s, instead of %s.' % (file_ext, self.extension))
It is {0!s}, instead of {1!s}.'.format(file_ext, self.extension))


def _check_filename_type(self, filename):
Expand All @@ -58,7 +58,7 @@ def _check_filename_type(self, filename):
:param string filename: file to check.
"""
if not isinstance(filename, basestring):
raise TypeError('The given filename (%s) must be a string' % filename)
raise TypeError('The given filename ({0!s}) must be a string'.format(filename))


def _check_infile_instantiation(self, infile):
Expand Down