Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 nsscache (0.38-1) UNRELEASED; urgency=medium
 .
   * New upstream release.
     * Python3!  Closes: #937164
Bug-Debian: https://bugs.debian.org/937164

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2019-11-08

--- /dev/null
+++ nsscache-0.39/nsscache.egg-info/PKG-INFO
@@ -0,0 +1,25 @@
+Metadata-Version: 2.1
+Name: nsscache
+Version: 0.39
+Summary: nsscache tool and library
+Home-page: https://github.com/google/nsscache
+Author: Jamie Wilkinson
+Author-email: jaq@google.com
+License: GPL
+Description: nsscache is a Python library and a commandline frontend to that library
+        that synchronises a local NSS cache against a remote directory service, such
+        as LDAP.
+Platform: UNKNOWN
+Classifier: Development Status :: 4 - Beta
+Classifier: Environment :: Console
+Classifier: Indended Audience :: System Administrators
+Classifier: License :: OSI Approved :: GPL
+Classifier: Operating System :: POSIX
+Classifier: Programming Language :: Python
+Classifier: Topic :: System
+Requires-Python: ~=3.4
+Provides-Extra: bdb
+Provides-Extra: consul
+Provides-Extra: http
+Provides-Extra: ldap
+Provides-Extra: s3
--- /dev/null
+++ nsscache-0.39/nsscache.egg-info/SOURCES.txt
@@ -0,0 +1,81 @@
+COPYING
+MANIFEST.in
+README.md
+THANKS
+nsscache
+nsscache.1
+nsscache.conf
+nsscache.conf.5
+nsscache.cron
+nsscache.spec
+setup.cfg
+setup.py
+examples/authorized-keys-command.py
+examples/authorized-keys-command.sh
+nss_cache/__init__.py
+nss_cache/app.py
+nss_cache/app_test.py
+nss_cache/command.py
+nss_cache/command_test.py
+nss_cache/config.py
+nss_cache/config_test.py
+nss_cache/error.py
+nss_cache/error_test.py
+nss_cache/lock.py
+nss_cache/lock_test.py
+nss_cache/nss.py
+nss_cache/nss_test.py
+nss_cache/caches/__init__.py
+nss_cache/caches/cache_factory.py
+nss_cache/caches/cache_factory_test.py
+nss_cache/caches/caches.py
+nss_cache/caches/caches_test.py
+nss_cache/caches/files.py
+nss_cache/caches/files_test.py
+nss_cache/caches/nssdb.py
+nss_cache/caches/nssdb_test.py
+nss_cache/maps/__init__.py
+nss_cache/maps/automount.py
+nss_cache/maps/automount_test.py
+nss_cache/maps/group.py
+nss_cache/maps/group_test.py
+nss_cache/maps/maps.py
+nss_cache/maps/maps_test.py
+nss_cache/maps/netgroup.py
+nss_cache/maps/netgroup_test.py
+nss_cache/maps/passwd.py
+nss_cache/maps/passwd_test.py
+nss_cache/maps/shadow.py
+nss_cache/maps/shadow_test.py
+nss_cache/maps/sshkey.py
+nss_cache/sources/__init__.py
+nss_cache/sources/consulsource.py
+nss_cache/sources/consulsource_test.py
+nss_cache/sources/httpsource.py
+nss_cache/sources/httpsource_test.py
+nss_cache/sources/ldapsource.py
+nss_cache/sources/ldapsource_test.py
+nss_cache/sources/s3source.py
+nss_cache/sources/s3source_test.py
+nss_cache/sources/source.py
+nss_cache/sources/source_factory.py
+nss_cache/sources/source_factory_test.py
+nss_cache/sources/source_test.py
+nss_cache/update/__init__.py
+nss_cache/update/files_updater.py
+nss_cache/update/files_updater_test.py
+nss_cache/update/map_updater.py
+nss_cache/update/map_updater_test.py
+nss_cache/update/updater.py
+nss_cache/update/updater_test.py
+nss_cache/util/__init__.py
+nss_cache/util/curl.py
+nss_cache/util/file_formats.py
+nss_cache/util/file_formats_test.py
+nss_cache/util/timestamps.py
+nss_cache/util/timestamps_test.py
+nsscache.egg-info/PKG-INFO
+nsscache.egg-info/SOURCES.txt
+nsscache.egg-info/dependency_links.txt
+nsscache.egg-info/requires.txt
+nsscache.egg-info/top_level.txt
\ No newline at end of file
--- /dev/null
+++ nsscache-0.39/nsscache.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
--- /dev/null
+++ nsscache-0.39/nsscache.egg-info/requires.txt
@@ -0,0 +1,16 @@
+
+[bdb]
+bsddb3
+
+[consul]
+pycurl
+
+[http]
+pycurl
+
+[ldap]
+python-ldap
+python3-ldap
+
+[s3]
+boto3
--- /dev/null
+++ nsscache-0.39/nsscache.egg-info/top_level.txt
@@ -0,0 +1 @@
+nss_cache
--- nsscache-0.39.orig/nss_cache/caches/files.py
+++ nsscache-0.39/nss_cache/caches/files.py
@@ -24,13 +24,13 @@ format created here.
 __author__ = ('jaq@google.com (Jamie Wilkinson)',
               'vasilios@google.com (Vasilios Hoffman)')
 
+import configparser
 import errno
 import os.path
 import re
 import shutil
 import stat
 import sys
-from configparser import ConfigParser
 
 from nss_cache import config
 from nss_cache import error
@@ -43,7 +43,7 @@ def LongestLength(l):
 
 
 # Load suffix config variables
-parser = ConfigParser()
+parser = configparser.ConfigParser()
 for i in sys.argv:
     if ('nsscache.conf') in i:
         # Remove '--config-file=' from the string
@@ -55,9 +55,12 @@ for i in sys.argv:
     else:
         # Config in nsscache folder
         parser.read('nsscache.conf')
-prefix = parser.get('suffix', 'prefix')
-suffix = parser.get('suffix', 'suffix')
-
+try:
+    prefix = parser.get('suffix', 'prefix')
+    suffix = parser.get('suffix', 'suffix')
+except configparser.NoSectionError:
+    prefix = ''
+    suffix = ''
 
 def RegisterAllImplementations(register_callback):
     """Register our cache classes independently from the import scheme."""
