##// END OF EJS Templates
py3: conditionalize the raise statement...
Pulkit Goyal -
r29759:e584c623 default
parent child Browse files
Show More
@@ -989,7 +989,10 b' class bundlepart(object):'
989 989 outdebug(ui, 'closing payload chunk')
990 990 # abort current part payload
991 991 yield _pack(_fpayloadsize, 0)
992 raise exc_info[0], exc_info[1], exc_info[2]
992 if sys.version_info[0] >= 3:
993 raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
994 else:
995 exec("""raise exc_info[0], exc_info[1], exc_info[2]""")
993 996 # end of payload
994 997 outdebug(ui, 'closing payload chunk')
995 998 yield _pack(_fpayloadsize, 0)
@@ -81,7 +81,7 b''
81 81 mercurial/archival.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
82 82 mercurial/bookmarks.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob)
83 83 mercurial/branchmap.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob)
84 mercurial/bundle2.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
84 mercurial/bundle2.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob)
85 85 mercurial/bundlerepo.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob)
86 86 mercurial/byterange.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob)
87 87 mercurial/changegroup.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob)
@@ -141,7 +141,7 b''
141 141 mercurial/pushkey.py: error importing: <TypeError> getattr(): attribute name must be string (error at pycompat.py:*) (glob)
142 142 mercurial/pvec.py: error importing: <TypeError> getattr(): attribute name must be string (error at pycompat.py:*) (glob)
143 143 mercurial/registrar.py: error importing: <TypeError> getattr(): attribute name must be string (error at util.py:*) (glob)
144 mercurial/repair.py: error importing module: <SyntaxError> invalid syntax (bundle2.py, line *) (line *) (glob)
144 mercurial/repair.py: error importing: <TypeError> getattr(): attribute name must be string (error at util.py:*) (glob)
145 145 mercurial/repoview.py: error importing: <TypeError> getattr(): attribute name must be string (error at util.py:*) (glob)
146 146 mercurial/revlog.py: error importing: <TypeError> getattr(): attribute name must be string (error at util.py:*) (glob)
147 147 mercurial/revset.py: error importing: <TypeError> getattr(): attribute name must be string (error at util.py:*) (glob)
@@ -168,6 +168,6 b''
168 168 mercurial/verify.py: error importing: <TypeError> attribute name must be string, not 'bytes' (error at mdiff.py:*) (glob)
169 169 mercurial/win32.py: error importing module: <ImportError> No module named 'msvcrt' (line *) (glob)
170 170 mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
171 mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle2.py, line *) (line *) (glob)
171 mercurial/wireproto.py: error importing module: <TypeError> a bytes-like object is required, not 'str' (line *) (glob)
172 172
173 173 #endif
General Comments 0
You need to be logged in to leave comments. Login now