Skip to content

Commit

Permalink
Merge pull request #139 from fchapoton/patch-1
Browse files Browse the repository at this point in the history
remove assignment of a variable `Formatter` to itself
  • Loading branch information
abukaj authored Mar 3, 2019
2 parents 2e04eed + 6d0f4d2 commit 45b56ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pweave/pweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def setformat(self, doctype = None, Formatter = None):
if doctype is not None:
Formatter = PwebFormats.getFormatter(doctype)
elif Formatter is not None:
Formatter = Formatter
pass
elif self.doctype is None:
Formatter = PwebFormats.getFormatter(PwebFormats.guessFromFilename(self.source))
else:
Expand Down

0 comments on commit 45b56ec

Please sign in to comment.