0.1.41
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
[metadata]
 | 
					[metadata]
 | 
				
			||||||
# replace with your username:
 | 
					# replace with your username:
 | 
				
			||||||
name = guan
 | 
					name = guan
 | 
				
			||||||
version = 0.1.40
 | 
					version = 0.1.41
 | 
				
			||||||
author = guanjihuan
 | 
					author = guanjihuan
 | 
				
			||||||
author_email = guanjihuan@163.com
 | 
					author_email = guanjihuan@163.com
 | 
				
			||||||
description = An open source python package
 | 
					description = An open source python package
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
Metadata-Version: 2.1
 | 
					Metadata-Version: 2.1
 | 
				
			||||||
Name: guan
 | 
					Name: guan
 | 
				
			||||||
Version: 0.1.40
 | 
					Version: 0.1.41
 | 
				
			||||||
Summary: An open source python package
 | 
					Summary: An open source python package
 | 
				
			||||||
Home-page: https://py.guanjihuan.com
 | 
					Home-page: https://py.guanjihuan.com
 | 
				
			||||||
Author: guanjihuan
 | 
					Author: guanjihuan
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -38,12 +38,11 @@ def get_calling_function_name(layer=1):
 | 
				
			|||||||
global_variable_of_first_guan_package_calling = []
 | 
					global_variable_of_first_guan_package_calling = []
 | 
				
			||||||
def statistics_of_guan_package():
 | 
					def statistics_of_guan_package():
 | 
				
			||||||
    import guan
 | 
					    import guan
 | 
				
			||||||
    import json
 | 
					 | 
				
			||||||
    function_name = guan.get_calling_function_name(layer=2)
 | 
					    function_name = guan.get_calling_function_name(layer=2)
 | 
				
			||||||
    function_calling_name = guan.get_calling_function_name(layer=3)
 | 
					 | 
				
			||||||
    global global_variable_of_first_guan_package_calling
 | 
					    global global_variable_of_first_guan_package_calling
 | 
				
			||||||
    if function_name not in global_variable_of_first_guan_package_calling:
 | 
					    if function_name not in global_variable_of_first_guan_package_calling:
 | 
				
			||||||
        global_variable_of_first_guan_package_calling.append(function_name)
 | 
					        global_variable_of_first_guan_package_calling.append(function_name)
 | 
				
			||||||
 | 
					        function_calling_name = guan.get_calling_function_name(layer=3)
 | 
				
			||||||
        if function_calling_name == '<module>':
 | 
					        if function_calling_name == '<module>':
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
                import socket
 | 
					                import socket
 | 
				
			||||||
@@ -62,6 +61,7 @@ def statistics_of_guan_package():
 | 
				
			|||||||
                    'MAC_address': mac_address,
 | 
					                    'MAC_address': mac_address,
 | 
				
			||||||
                    'function_name': function_name
 | 
					                    'function_name': function_name
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					                import json
 | 
				
			||||||
                send_message = json.dumps(message)
 | 
					                send_message = json.dumps(message)
 | 
				
			||||||
                client_socket.send(send_message.encode())
 | 
					                client_socket.send(send_message.encode())
 | 
				
			||||||
                client_socket.close()
 | 
					                client_socket.close()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user