Skip to content

Commit

Permalink
Fix os.file for unreadable files - set regular file mode if none set …
Browse files Browse the repository at this point in the history
…in FakeFile st_mode arg - add convenience permission argument to create_file() - fixes #588
  • Loading branch information
CI Build committed Feb 24, 2021
1 parent abe426d commit a43177a
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion master/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h3>Navigation</h3>
&#169; Copyright 2009 Google Inc. All Rights Reserved.
© Copyright 2014 Altera Corporation. All Rights Reserved.
© Copyright 2014-2020 John McGehee.
Last updated on Feb 11, 2021.
Last updated on Feb 24, 2021.
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion master/autopatch.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ <h3>Navigation</h3>
&#169; Copyright 2009 Google Inc. All Rights Reserved.
© Copyright 2014 Altera Corporation. All Rights Reserved.
© Copyright 2014-2020 John McGehee.
Last updated on Feb 11, 2021.
Last updated on Feb 24, 2021.
</div>
</body>
</html>
Binary file modified master/doctrees/environment.pickle
Binary file not shown.
Binary file modified master/doctrees/modules.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion master/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ <h3>Navigation</h3>
&#169; Copyright 2009 Google Inc. All Rights Reserved.
© Copyright 2014 Altera Corporation. All Rights Reserved.
© Copyright 2014-2020 John McGehee.
Last updated on Feb 11, 2021.
Last updated on Feb 24, 2021.
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion master/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h3>Navigation</h3>
&#169; Copyright 2009 Google Inc. All Rights Reserved.
© Copyright 2014 Altera Corporation. All Rights Reserved.
© Copyright 2014-2020 John McGehee.
Last updated on Feb 11, 2021.
Last updated on Feb 24, 2021.
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion master/intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h3>Navigation</h3>
&#169; Copyright 2009 Google Inc. All Rights Reserved.
© Copyright 2014 Altera Corporation. All Rights Reserved.
© Copyright 2014-2020 John McGehee.
Last updated on Feb 11, 2021.
Last updated on Feb 24, 2021.
</div>
</body>
</html>
6 changes: 4 additions & 2 deletions master/modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,9 @@ <h2>Fake filesystem classes<a class="headerlink" href="#fake-filesystem-classes"
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>name</strong> – Name of the file/directory, without parent path information</li>
<li><strong>st_mode</strong> – The stat.S_IF* constant representing the file type (i.e.
stat.S_IFREG, stat.S_IFDIR)</li>
stat.S_IFREG, stat.S_IFDIR), and the file permissions.
If no file type is set (e.g. permission flags only), a
regular file type is assumed.</li>
<li><strong>contents</strong> – The contents of the filesystem object; should be a string
or byte object for regular files, and a list of other
FakeFile or FakeDirectory objects for FakeDirectory objects</li>
Expand Down Expand Up @@ -1265,7 +1267,7 @@ <h3>Navigation</h3>
&#169; Copyright 2009 Google Inc. All Rights Reserved.
© Copyright 2014 Altera Corporation. All Rights Reserved.
© Copyright 2014-2020 John McGehee.
Last updated on Feb 11, 2021.
Last updated on Feb 24, 2021.
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion master/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h3>Navigation</h3>
&#169; Copyright 2009 Google Inc. All Rights Reserved.
© Copyright 2014 Altera Corporation. All Rights Reserved.
© Copyright 2014-2020 John McGehee.
Last updated on Feb 11, 2021.
Last updated on Feb 24, 2021.
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion master/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h3>Navigation</h3>
&#169; Copyright 2009 Google Inc. All Rights Reserved.
© Copyright 2014 Altera Corporation. All Rights Reserved.
© Copyright 2014-2020 John McGehee.
Last updated on Feb 11, 2021.
Last updated on Feb 24, 2021.
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion master/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion master/usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ <h3>Navigation</h3>
&#169; Copyright 2009 Google Inc. All Rights Reserved.
© Copyright 2014 Altera Corporation. All Rights Reserved.
© Copyright 2014-2020 John McGehee.
Last updated on Feb 11, 2021.
Last updated on Feb 24, 2021.
</div>
</body>
</html>

0 comments on commit a43177a

Please sign in to comment.