Commit Graph

5 Commits

Author SHA1 Message Date
Jelle Zijlstra
383d1dc9e1 mark cProfile as private in pstats.pyi (#1344) 2017-05-24 20:33:20 -07:00
Jelle Zijlstra
1d6e3f492e Fix incorrect usage of AnyStr (#1215)
* Fix incorrect usage of AnyStr

- sqlite3 was using Union[bytes, AnyStr], which doesn't make sense
- The urllib functions I changed accept either bytes or str for their "safe"
  argument
- Also added supports for PathLike to pstats
- Remove some unused imports of AnyStr

* pstats: python 2 accepts unicode
2017-04-27 08:47:59 -07:00
Eklavya Sharma
bc092ded69 pstats: Add default value for kwarg (#905)
According to python library docs, pstats.Stats.__init__ has a
keyword argument `stream' whose default value is `sys.stdout`.
2017-01-31 11:42:14 +00:00
Lukasz Langa
b84f20a011 Fixing flake8 W errors 2016-12-19 21:52:56 -08:00
Jelle Zijlstra
918dab66d0 pstats: add stub (#727)
partially addresses #531
2016-12-13 14:51:57 -08:00