[blivet:master 24/25] Rename bits() to numBits()

mulhern amulhern at redhat.com
Wed Apr 16 21:54:45 UTC 2014


'bits' is used as a keyword for parameters in a couple of methods, causing a
conflict between the outer and inner-scoped names. This change is less
intrusive than changing the names of the keyword parameters, which are used
in many more places.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/arch.py       | 2 +-
 blivet/formats/fs.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/blivet/arch.py b/blivet/arch.py
index 34586e3..36a2a07 100644
--- a/blivet/arch.py
+++ b/blivet/arch.py
@@ -347,7 +347,7 @@ def getArch():
     else:
         return os.uname()[4]
 
-def bits():
+def numBits():
     """ Return an integer representing the length
         of the "word" used by the current architecture
         -> it is usually either 32 or 64
diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index 19b3dba..cb1bd44 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -1519,7 +1519,7 @@ class TmpFS(NoDevFS):
         # http://www.gossamer-threads.com/lists/linux/kernel/875278
         # maximum tmpfs mount size is 16TB on 32 bit systems
         # and 16EB on 64 bit systems
-        bits = arch.bits()
+        bits = arch.numBits()
         if bits == 32:
             self._maxSize = Size(spec="16TiB")
         elif bits == 64:
-- 
1.8.3.1



More information about the anaconda-patches mailing list