changed gitignore, corrected tabs, added some comments
This commit is contained in:
parent
3f33a13f77
commit
08a4c4d3c1
2 changed files with 12 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -81,6 +81,7 @@ modules.xml
|
||||||
# End of https://www.gitignore.io/api/pycharm+iml
|
# End of https://www.gitignore.io/api/pycharm+iml
|
||||||
|
|
||||||
*.log
|
*.log
|
||||||
|
__pycache__/
|
||||||
config.json
|
config.json
|
||||||
config-devel.json
|
config-devel.json
|
||||||
bot_test.py
|
bot_test.py
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import asyncio
|
|
||||||
|
# since 3.5: type hints
|
||||||
|
# def <name>(<args) -> <returntype>:
|
||||||
|
|
||||||
|
import asyncio # write concurrent code (not threading. not multiprocessing)
|
||||||
|
# it's cooperative multitasking, no parallelism
|
||||||
|
# coroutines: suspend execution before return and pass control to another coroutine
|
||||||
|
# use await only in async functions
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import json
|
import json
|
||||||
import signal
|
import signal
|
||||||
|
@ -26,6 +34,7 @@ from telepot.namedtuple import InlineKeyboardMarkup, InlineKeyboardButton
|
||||||
|
|
||||||
|
|
||||||
class Essen:
|
class Essen:
|
||||||
|
""" Test Docstring """
|
||||||
def __init__(self, name, preis, kategorie):
|
def __init__(self, name, preis, kategorie):
|
||||||
self.name = name
|
self.name = name
|
||||||
self.preis = preis
|
self.preis = preis
|
||||||
|
|
Loading…
Reference in a new issue