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.
1 parent 94b11a9 commit 5456ae5Copy full SHA for 5456ae5
1 file changed
appium/version.py
@@ -12,14 +12,7 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
-from importlib import metadata
+from importlib.metadata import PackageNotFoundError, version as _metadata_version
16
17
18
-def _get_version():
19
- try:
20
- return metadata.version('Appium-Python-Client')
21
- except metadata.PackageNotFoundError:
22
- return 'unknown'
23
-
24
25
-version = _get_version()
+version = _metadata_version('Appium-Python-Client')
0 commit comments