]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/opstring.py
Use integer division for Py3 compatibility
[m_lib.git] / m_lib / opstring.py
index 0341bced97cfc82d8992b5ce10794aba95682798..cb83a8a92ee9d8222d8dede58e2f45847e9a6398 100755 (executable)
@@ -66,7 +66,7 @@ def CenterCh(S, Ch, Width):
    if len(S) >= Width:
       return S
    else:
-      l = (Width - len(S)) / 2
+      l = (Width - len(S)) // 2
       r = Width - len(S) - l
       return Ch*l + S + Ch*r