Skip to content

Commit 403f38d

Browse files
pallav-fdsijreback
authored andcommitted
BUG: invalid import checking in gbq (GH8587)
1 parent a2c36c1 commit 403f38d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/gbq.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
_GOOGLE_API_CLIENT_INSTALLED=True
4444
_GOOGLE_API_CLIENT_VERSION = pkg_resources.get_distribution('google-api-python-client').version
4545

46-
if LooseVersion(_GOOGLE_API_CLIENT_VERSION >= '1.2.0'):
46+
if LooseVersion(_GOOGLE_API_CLIENT_VERSION) >= '1.2.0':
4747
_GOOGLE_API_CLIENT_VALID_VERSION = True
4848

4949
except ImportError:
@@ -56,7 +56,7 @@
5656

5757
_GOOGLE_FLAGS_VERSION = pkg_resources.get_distribution('python-gflags').version
5858

59-
if LooseVersion(_GOOGLE_FLAGS_VERSION >= '2.0.0'):
59+
if LooseVersion(_GOOGLE_FLAGS_VERSION) >= '2.0':
6060
_GOOGLE_FLAGS_VALID_VERSION = True
6161

6262
except ImportError:

0 commit comments

Comments
 (0)