Commits

Brian Kearns committed 6823e86 Merge

merge default

Comments (0)

Files changed (5)

         else:
             padLen = 120 - index
 
-        padding = [0o200] + [0] * 63
+        padding = [b'\200'] + [b'\000'] * 63
         self.update(padding[:padLen])
 
         # Append length (before padding).

lib_pypy/_pypy_interact.py

File contents unchanged.

lib_pypy/_pypy_irc_topic.py

 """
 
 from string import ascii_uppercase, ascii_lowercase
- 
+
 def rot13(data):
     """ A simple rot-13 encoder since `str.encode('rot13')` was removed from
         Python as of version 3.0.  It rotates both uppercase and lowercase letters individually.
         else:
             total.append(char)
     return "".join(total)
- 
+
 def some_topic():
     import time
     lines = __doc__.splitlines()

lib_pypy/_structseq.py

                 field.__name__ = name
         dict['n_fields'] = len(fields_by_index)
 
-        extra_fields = list(fields_by_index.items())
-        extra_fields.sort()
+        extra_fields = sorted(fields_by_index.items())
         n_sequence_fields = 0
         while extra_fields and extra_fields[0][0] == n_sequence_fields:
             extra_fields.pop(0)
     from os import getuid
     uid = getuid()
     pw = getpwuid(uid)
-    print(("uid %s: %s" % (pw.pw_uid, pw)))
+    print("uid %s: %s" % (pw.pw_uid, pw))
     name = pw.pw_name
-    print(("name %r: %s" % (name, getpwnam(name))))
+    print("name %r: %s" % (name, getpwnam(name)))
     print("All:")
     for pw in getpwall():
         print(pw)