Skip to content

Commit

Permalink
Hotfix/os open (#58)
Browse files Browse the repository at this point in the history
* Bumpversion 1.19.1

* Fix 'an integer is required' in 'generate_swagger' (#57)

Co-authored-by: Adam Dobrawy <[email protected]>
  • Loading branch information
JoelLefkowitz and ad-m authored Oct 17, 2020
1 parent a20889c commit a0f6f9d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[bumpversion]
tag = True
commit = True
current_version = 1.19.0
current_version = 1.19.1

[bumpversion:file:setup.cfg]

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.

version = "1.19.0"
version = "1.19.1"

extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]

Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[bumpversion]
current_version = 1.19.0
current_version = 1.19.1

[metadata]
name = drf_yasg2
version = 1.19.0
version = 1.19.1
description = Automated generation of real Swagger/OpenAPI 2.0 schemas from Django Rest Framework code
license_file = LICENSE.md
long-description = file: README.md
Expand Down
2 changes: 1 addition & 1 deletion src/drf_yasg2/management/commands/generate_swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,5 @@ def handle(
if output_file == "-":
self.write_schema(schema, self.stdout, format)
else:
with os.open(output_file, "w") as stream:
with open(output_file, "w") as stream:
self.write_schema(schema, stream, format)

0 comments on commit a0f6f9d

Please sign in to comment.