We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b570b0e + 80a9d1d commit 7e67ea6Copy full SHA for 7e67ea6
wiremock/__init__.py
@@ -1,4 +1,5 @@
1
import os
2
3
__wiremock_version_path__ = os.path.realpath(__file__ + '/../VERSION')
4
-__version__ = open(__wiremock_version_path__, 'r').readline().strip()
+with open(__wiremock_version_path__, 'r') as f:
5
+ __version__ = f.readline().strip()
0 commit comments