[PATCH] error: use docstrings, not bare strings, for error classes

michaeljedgar at gmail.com michaeljedgar at gmail.com
Sat Aug 30 10:03:58 CDT 2014


# HG changeset patch
# User Mike Edgar <adgar at google.com>
# Date 1409394140 -7200
#      Sat Aug 30 12:22:20 2014 +0200
# Node ID 67a45fae8b0e72895ea11a937153bc3130ecf48f
# Parent  bdc0e04df243d3995c7266bf7d138fddd0449ba6
error: use docstrings, not bare strings, for error classes

diff -r bdc0e04df243 -r 67a45fae8b0e mercurial/error.py
--- a/mercurial/error.py	Wed Aug 27 18:35:34 2014 +0200
+++ b/mercurial/error.py	Sat Aug 30 12:22:20 2014 +0200
@@ -43,13 +43,13 @@
         self.hint = kw.get('hint')
 
 class ConfigError(Abort):
-    'Exception raised when parsing config files'
+    """Exception raised when parsing config files"""
 
 class OutOfBandError(Exception):
-    'Exception raised when a remote repo reports failure'
+    """Exception raised when a remote repo reports failure"""
 
 class ParseError(Exception):
-    'Exception raised when parsing config files (msg[, pos])'
+    """Exception raised when parsing config files (msg[, pos])"""
 
 class RepoError(Exception):
     def __init__(self, *args, **kw):


More information about the Mercurial-devel mailing list