]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes: drop pre-python 3.2 version checks 47067/head
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 2 Aug 2022 13:45:59 +0000 (09:45 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 2 Aug 2022 13:45:59 +0000 (09:45 -0400)
Based on other conversations we believe that there is no need to support
python versions lower than Python 3.6 for pacific and later.  This means
it is safe to drop the remaining version checks for python
3.2.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/volumes/fs/operations/versions/metadata_manager.py

index bf2440f4aeab677853d00809aa95d6e2eb9cbf05..3c536f8a9b4b53807dac8a8555bd4594ff9a9c14 100644 (file)
@@ -3,11 +3,7 @@ import errno
 import logging
 import sys
 import threading
-
-if sys.version_info >= (3, 2):
-    import configparser
-else:
-    import ConfigParser as configparser
+import configparser
 
 import cephfs
 
@@ -71,10 +67,7 @@ class MetadataManager(object):
         self.fs = fs
         self.mode = mode
         self.config_path = config_path
-        if sys.version_info >= (3, 2):
-            self.config = configparser.ConfigParser()
-        else:
-            self.config = configparser.SafeConfigParser()
+        self.config = configparser.ConfigParser()
 
     def refresh(self):
         fd = None