Skip to content

Commit

Permalink
Read all of file
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Sep 7, 2015
1 parent 7793ebb commit c49be88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flake8_copyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def run(self):
if len(top_of_file) < self.copyright_min_file_size:
return

top_of_file = open(self.filename).read()

author = self.copyright_author if self.copyright_author else r".*"
re_copyright = re.compile(self.copyright_regexp % {'author': author}, re.IGNORECASE)
if not re_copyright.search(top_of_file):
Expand Down

0 comments on commit c49be88

Please sign in to comment.