summaryrefslogtreecommitdiff
path: root/pygnulib/GLInfo.py
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-07-29 18:45:33 +0200
committerBruno Haible <bruno@clisp.org>2022-07-29 18:45:33 +0200
commit0bc144f96608c17963d021468f278a8d0c577894 (patch)
tree8463639f632892047246ccd40f7825555320b721 /pygnulib/GLInfo.py
parent3e44e3bb0c1a91faa5b31b257c9f32fb752f8c2d (diff)
downloadgnulib-0bc144f96608c17963d021468f278a8d0c577894.tar.gz
gnulib-tool.py: Modernize coding style.
* pygnulib/*.py: Remove parentheses around return value expressions.
Diffstat (limited to 'pygnulib/GLInfo.py')
-rw-r--r--pygnulib/GLInfo.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/pygnulib/GLInfo.py b/pygnulib/GLInfo.py
index b3cc59dc07..d21e09f43d 100644
--- a/pygnulib/GLInfo.py
+++ b/pygnulib/GLInfo.py
@@ -67,12 +67,12 @@ class GLInfo(object):
def __repr__(self):
'''x.__repr__ <==> repr(x)'''
result = '<pygnulib.GLInfo %s>' % hex(id(self))
- return(result)
+ return result
def package(self):
'''Return formatted string which contains name of the package.'''
result = 'GNU gnulib'
- return(result)
+ return result
def authors(self):
'''Return formatted string which contains authors.
@@ -85,7 +85,7 @@ class GLInfo(object):
result += 'and %s' % item
else:
result += '%s, ' % item
- return(result)
+ return result
def license(self):
'''Return formatted string which contains license and its description.'''
@@ -94,13 +94,13 @@ class GLInfo(object):
result += 'This is free software: you are free'
result += ' to change and redistribute it.\n'
result += 'There is NO WARRANTY, to the extent permitted by law.'
- return(result)
+ return result
def copyright(self):
'''Return formatted string which contains copyright.
The special __copyright__ variable is used (type is str).'''
result = 'Copyright (C) %s' % __copyright__
- return(result)
+ return result
def date(self):
'''Return formatted string which contains date and time in GMT format.'''
@@ -120,7 +120,7 @@ class GLInfo(object):
proc = sp.check_output(args)
result = string(proc, "UTF-8")
result = result.rstrip(os.linesep)
- return(result)
+ return result
def usage(self):
'''Show help message.'''
@@ -299,7 +299,7 @@ Options for --import, --add/remove-import, --update:
-S, --more-symlinks Deprecated; equivalent to --symlink.
Report bugs to <bug-gnulib@gnu.org>.'''
- return(result)
+ return result
def version(self):
'''Return formatted string which contains git version.'''
@@ -310,4 +310,4 @@ Report bugs to <bug-gnulib@gnu.org>.'''
result = result.strip()
if result == 'UNKNOWN':
result = string()
- return(result)
+ return result