Skip to content

CLN: remove py2-legacy UnicodeReader, UnicodeWriter #30371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 20, 2019

Conversation

jbrockmendel
Copy link
Member

By getting rid of these one-liners, the few places where they are used end up being simplified a bit.

else:
self.writer = UnicodeWriter(f, encoding=self.encoding, **writer_kwargs)
# Note: self.encoding is irrelevant here
self.writer = csvlib.writer(f, **writer_kwargs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't need to create writer_kwargs dict up-front now?

@simonjayhawkins simonjayhawkins added this to the 1.0 milestone Dec 20, 2019
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. @simonjayhawkins comment

@jreback
Copy link
Contributor

jreback commented Dec 20, 2019

lgtm merge on green

@jbrockmendel jbrockmendel merged commit 0cd388f into pandas-dev:master Dec 20, 2019
@jbrockmendel jbrockmendel deleted the cln-icom-unireader branch December 20, 2019 18:47
AlexKirko pushed a commit to AlexKirko/pandas that referenced this pull request Dec 29, 2019
* CLN: remove py2-legacy UnicodeReader, UnicodeWriter

* remove unnecessar y writer_kwargs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants