Commits

Andreas Stührk committed 2497214

Revert some unwanted changes that sneaked in with 0477d51550ab.

Comments (0)

Files changed (2)

bpython/inspection.py

     kwparsed = parsekeywordpairs(signature)
 
     for i, (key, value) in enumerate(zip(keys, values)):
-        if len(repr(value)) != len(kwparsed[key]):
+        if len(str(value)) != len(kwparsed[key]):
             values[i] = kwparsed[key]
 
     argspec[3] = values

bpython/test/test_inspection.py

-import inspect
 import unittest
 
 from bpython import inspection
         defaults = argspec[1][3]
         self.assertEqual(str(defaults[0]), default_arg_repr)
 
-    def test_fixlongargs(self):
-        def spam(a, b=1, c="y\xc3\xa4y"):
-            pass
-
-        argspec = list(inspect.getargspec(spam))
-        print argspec[3],
-        inspection.fixlongargs(spam, argspec)
-        print argspec[3], [type(a) for a in argspec[3]]
-        self.assertFalse(argspec)
-
 if __name__ == '__main__':
     unittest.main()