Commits

Augie Fackler committed 1bdd075

cleanup: avoid \' in strings where easy

  • Participants
  • Parent commits b303b60

Comments (0)

Files changed (4)

File hgsubversion/svnmeta.py

             if lo == 'auto':
                 raise hgutil.Abort('layout not yet determined')
             elif not lo in ('single', 'standard'):
-                raise hgutil.Abort('unknown layout \'%s\'' % lo)
+                raise hgutil.Abort("unknown layout '%s'" % lo)
             self._layout = lo
             f = open(self.layoutfile, 'w')
             f.write(self._layout)

File hgsubversion/svnrepo.py

             username = default_username
         else:
             username = self.ui.prompt('Username: ', default='')
-        password = self.ui.getpass('Password for \'%s\': ' % (username,), default='')
+        password = self.ui.getpass("Password for '%s': " % (username,), default='')
         return (username, password, bool(may_save))
 
     def ssl_client_cert(self, realm, may_save, pool=None):
         return (cert_file, bool(may_save))
 
     def ssl_client_cert_pw(self, realm, may_save, pool=None):
-        password = self.ui.getpass('Passphrase for \'%s\': ' % (realm,), default='')
+        password = self.ui.getpass("Passphrase for '%s': " % (realm,), default='')
         return (password, bool(may_save))
 
     def insecure(fn):
 
     @insecure
     def ssl_server_trust(self, realm, failures, cert_info, may_save, pool=None):
-        msg = 'Error validating server certificate for \'%s\':\n' % (realm,)
+        msg = "Error validating server certificate for '%s':\n" % (realm,)
         if failures & svnwrap.SSL_UNKNOWNCA:
             msg += (
                     ' - The certificate is not issued by a trusted authority. Use the\n'
         else:
             creds = None
         return creds
-

File hgsubversion/svnwrap/subvertpy_wrapper.py

                         editor.delete_entry(path, base_revision)
                         continue
                     else:
-                        assert False, 'invalid action \'%s\'' % action
+                        assert False, "invalid action '%s'" % action
 
                     if path in props:
                         if props[path].get('svn:special', None):

File hgsubversion/wrappers.py

 
         layout = repo.ui.config('hgsubversion', 'layout', 'auto')
         if not layout in ('auto', 'single', 'standard'):
-            raise hgutil.Abort('unknown layout \'%s\'' % layout)
+            raise hgutil.Abort("unknown layout '%s'" % layout)
         if layout == 'auto':
             try:
                 rootlist = svn.list_dir('', revision=(stopat_rev or None))