Commit 89d5b7f2 authored by Vincent Castellano's avatar Vincent Castellano

Implement Python >=3.3 support

parent caacc3c5
telegram telegram
*.o *.o
Makefile Makefile
aclocal.m4
autom4te.cache autom4te.cache
config.h config.h
config.log config.log
...@@ -16,4 +17,4 @@ debian/telegram-cli.[a-z] ...@@ -16,4 +17,4 @@ debian/telegram-cli.[a-z]
debian/files debian/files
debian/telegram-cli/* debian/telegram-cli/*
debian/telegram-cli.debhelper.log debian/telegram-cli.debhelper.log
debian/telegram-cli.substvars debian/telegram-cli.substvars
\ No newline at end of file
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
AC_DEFUN([AX_PYTHON], AC_DEFUN([AX_PYTHON],
[AC_MSG_CHECKING(for python build information) [AC_MSG_CHECKING(for python build information)
AC_MSG_RESULT([]) AC_MSG_RESULT([])
for python in python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do for python in python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
AC_CHECK_PROGS(PYTHON_BIN, [$python]) AC_CHECK_PROGS(PYTHON_BIN, [$python])
ax_python_bin=$PYTHON_BIN ax_python_bin=$PYTHON_BIN
if test x$ax_python_bin != x; then if test x$ax_python_bin != x; then
......
...@@ -5943,7 +5943,7 @@ if test "${enable_python+set}" = set; then : ...@@ -5943,7 +5943,7 @@ if test "${enable_python+set}" = set; then :
$as_echo_n "checking for python build information... " >&6; } $as_echo_n "checking for python build information... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; } $as_echo "" >&6; }
for python in python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do for python in python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
for ac_prog in $python for ac_prog in $python
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
......
This diff is collapsed.
...@@ -3,7 +3,6 @@ import geopy ...@@ -3,7 +3,6 @@ import geopy
import pprint import pprint
from geopy.geocoders import Nominatim from geopy.geocoders import Nominatim
our_id = 0 our_id = 0
pp = pprint.PrettyPrinter(indent=4) pp = pprint.PrettyPrinter(indent=4)
...@@ -52,3 +51,13 @@ def on_user_update(): ...@@ -52,3 +51,13 @@ def on_user_update():
def on_chat_update(): def on_chat_update():
pass pass
# Set callbacks
tgl.set_on_binlog_replay_end(on_binlog_replay_end)
tgl.set_on_get_difference_end(on_get_difference_end)
tgl.set_on_our_id(on_our_id)
tgl.set_on_msg_receive(on_msg_receive)
tgl.set_on_secret_chat_update(on_secret_chat_update)
tgl.set_on_user_update(on_user_update)
tgl.set_on_chat_update(on_chat_update)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment