decode is not needed for python3 (#298)
This commit is contained in:
		
							parent
							
								
									654db0935b
								
							
						
					
					
						commit
						e151a14a7b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -226,7 +226,7 @@ if args.rfscanlearn:
 | 
				
			||||||
        if args.learnfile is None:
 | 
					        if args.learnfile is None:
 | 
				
			||||||
            print(learned)
 | 
					            print(learned)
 | 
				
			||||||
            decode_hex = codecs.getdecoder("hex_codec")
 | 
					            decode_hex = codecs.getdecoder("hex_codec")
 | 
				
			||||||
            print("Base64: {}".format(str(base64.b64encode(decode_hex(learned)[0])).decode('utf8')))
 | 
					            print("Base64: {}".format(str(base64.b64encode(decode_hex(learned)[0]))))
 | 
				
			||||||
        if args.learnfile is not None:
 | 
					        if args.learnfile is not None:
 | 
				
			||||||
            print("Saving to {}".format(args.learnfile))
 | 
					            print("Saving to {}".format(args.learnfile))
 | 
				
			||||||
            with open(args.learnfile, "w") as text_file:
 | 
					            with open(args.learnfile, "w") as text_file:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue