Skip to content

Commit

Permalink
fixed bug with string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierverdier committed Oct 19, 2010
1 parent 6286229 commit 7728aef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/landslide/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def __init__(self, source, destination_file='presentation.html',
"Please use one of these file extensions in the "
"destination")

self.embed = True if self.file_type is 'pdf' else embed
self.embed = True if self.file_type == 'pdf' else embed

self.theme = theme if theme else 'default'

Expand Down Expand Up @@ -150,7 +150,7 @@ def set_toc(self, value):
def execute(self):
"""Execute this generator regarding its current configuration"""
if self.direct:
if self.file_type is 'pdf':
if self.file_type == 'pdf':
raise IOError(u"Direct output mode is not available for PDF "
"export")
else:
Expand Down Expand Up @@ -326,7 +326,7 @@ def write(self):
"""Writes generated presentation code into the destination file"""
html = self.render()

if self.file_type is 'pdf':
if self.file_type == 'pdf':
self.write_pdf(html)
else:
outfile = codecs.open(self.destination_file, 'w',
Expand Down

0 comments on commit 7728aef

Please sign in to comment.