Brian Kearns avatar 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).
Add a comment to this file

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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.