Skip to content

Conversation

@flymedllva
Copy link

@flymedllva flymedllva commented Nov 17, 2019

  • Updated files to PEP8, documentation
  • Format => f-string
  • Refactor functions
  • Update shipping option

class Handler:
"""
Class for (next step|reply) handlers
Class for (next steplogger.debug|reply) handlers
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why "steplogger.debug"?

Copy link
Author

Choose a reason for hiding this comment

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

Sorry I didn't see it


self.token = token
self.update_listener = []
self.update_listener = list()
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the reason (here and below)? Nothing in PEP8 about it?
And here they say that it is slower: https://stackoverflow.com/questions/2972212/creating-an-empty-list-in-python

Copy link
Author

Choose a reason for hiding this comment

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

Perhaps not really the best change. It just reads better.

telebot/types.py Outdated
"url" : "<a href=\"{url}\">{text}</a>",
"text_link": "<a href=\"{url}\">{text}</a>"
}
_subs = dict(bold="<b>{text}</b>", italic="<i>{text}</i>", pre="<pre>{text}</pre>", code="<code>{text}</code>",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Single item per single line pls...

@Badiboy
Copy link
Collaborator

Badiboy commented Jan 3, 2020

Итого. Просьба, если есть возможность:

  1. Устранить согласованные вопросы
  2. Разрешить конфликты с основной веткой

PS. Благодаря уважаемому eternnoir у меня появились ключи от сейфа, можно попробовать освежить этот неплохой продукт. :)

@Badiboy
Copy link
Collaborator

Badiboy commented Jan 3, 2020

image

Problems with f-strings and python 2.7 & 3.5... 3.5 is not at EOL... :(

@flymedllva
Copy link
Author

:/

@Badiboy Badiboy mentioned this pull request Jan 8, 2020
Badiboy added a commit that referenced this pull request Jan 8, 2020
@Badiboy
Copy link
Collaborator

Badiboy commented Jan 8, 2020

Hm. 16 more edited files instead of clearing previous ones.

Me personally do not like the formatting style you bring. I did not like the previous one, I do not like new one even more. So I cannot accept this request, sorry. May be someone else did it.

I manually bring all (as far as I found them in 22 files) valuable updates to the pull request #728. That's all I can do for it now.

@flymedllva
Copy link
Author

Ok

@flymedllva flymedllva closed this Jan 8, 2020
@Badiboy
Copy link
Collaborator

Badiboy commented Jan 8, 2020

No need to close the issue. I'm not the one with final decisions. It was my personal oppinion, owner may have another one.

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.

2 participants