Skip to content

Commit

Permalink
minor style/spelling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rtaycher committed Aug 31, 2020
1 parent 0d95a40 commit 8302d8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/past/builtins/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def oct(number):
return '0' + builtins.oct(number)[2:]

raw_input = input
from imp import reload
from importlib import reload
unicode = str
unichr = chr
xrange = range
Expand Down Expand Up @@ -143,7 +143,7 @@ def execfile(filename, myglobals=None, mylocals=None):
if not isinstance(mylocals, Mapping):
raise TypeError('locals must be a mapping')
with open(filename, "rb") as fin:
source = fin.read()
source = fin.read()
code = compile(source, filename, "exec")
exec_(code, myglobals, mylocals)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_past/test_misc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
Tests for the resurrected Py2-like cmp funtion
Tests for the resurrected Py2-like cmp function
"""

from __future__ import absolute_import, unicode_literals, print_function
Expand All @@ -23,7 +23,7 @@ def test_cmp(self):
with self.subTest(x=x, y=y):
try:
past_cmp_value = cmp(x, y)
except Exception as ex:
except Exception:
past_cmp_value = traceback.format_exc().strip().split('\n')[-1]

self.assertEqual(cmp_python2_value, past_cmp_value,
Expand Down

0 comments on commit 8302d8c

Please sign in to comment.