ashishb / adb-enhanced

global statement detected PYL-W0603
Anti-pattern
Major
8 months ago5 years old
Using the global statement
197_sdk_version = None
198
199def _get_device_sdk_version():
200    global _sdk_version201    # Return the cached value, if available
202    if _sdk_version is not None:
203        return _sdk_version
Using the global statement
 46
 47# This method will be invoked only if testpythoninstallation is passed
 48def test_binary(testpythoninstallation):
 49    global _TEST_PYTHON_INSTALLATION 50    if testpythoninstallation:
 51        _TEST_PYTHON_INSTALLATION = True
 52
Using the global statement
 4
 5
 6def set_verbose(enabled):
 7    global __VERBOSE_MODE 8    __VERBOSE_MODE = enabled
 9
10