define python source code encoding as utf-8

This commit is contained in:
debugtalk
2018-03-27 12:07:46 +08:00
parent da6c0cb848
commit 94db1acc80
16 changed files with 32 additions and 2 deletions
+2
View File
@@ -1 +1,3 @@
# encoding: utf-8
from httprunner.task import HttpRunner from httprunner.task import HttpRunner
+3
View File
@@ -1,6 +1,9 @@
# encoding: utf-8
""" """
Built-in dependent functions used in YAML/JSON testcases. Built-in dependent functions used in YAML/JSON testcases.
""" """
import datetime import datetime
import json import json
import random import random
+2
View File
@@ -1,3 +1,5 @@
# encoding: utf-8
import argparse import argparse
import multiprocessing import multiprocessing
import os import os
+2
View File
@@ -1,3 +1,5 @@
# encoding: utf-8
import re import re
import time import time
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*- # encoding: utf-8
""" """
httprunner.compat httprunner.compat
+2
View File
@@ -1,3 +1,5 @@
# encoding: utf-8
import copy import copy
import os import os
import re import re
+2
View File
@@ -1,3 +1,5 @@
# encoding: utf-8
class EventHook(object): class EventHook(object):
""" """
Simple event class used to provide hooks for different types of events in HttpRunner. Simple event class used to provide hooks for different types of events in HttpRunner.
+2 -1
View File
@@ -1,4 +1,5 @@
#coding: utf-8 # encoding: utf-8
import json import json
try: try:
+2
View File
@@ -1,3 +1,5 @@
# encoding: utf-8
import io import io
import multiprocessing import multiprocessing
import os import os
+2
View File
@@ -1,3 +1,5 @@
# encoding: utf-8
import logging import logging
import sys import sys
+2
View File
@@ -1,3 +1,5 @@
# encoding: utf-8
import io import io
import os import os
import platform import platform
+2
View File
@@ -1,3 +1,5 @@
# encoding: utf-8
import re import re
from httprunner import exception, logger, testcase, utils from httprunner import exception, logger, testcase, utils
+2
View File
@@ -1,3 +1,5 @@
# encoding: utf-8
from unittest.case import SkipTest from unittest.case import SkipTest
from httprunner import exception, logger, response, testcase, utils from httprunner import exception, logger, response, testcase, utils
+2
View File
@@ -1,3 +1,5 @@
# encoding: utf-8
import copy import copy
import sys import sys
import unittest import unittest
+2
View File
@@ -1,3 +1,5 @@
# encoding: utf-8
import ast import ast
import csv import csv
import io import io
+2
View File
@@ -1,3 +1,5 @@
# encoding: utf-8
import copy import copy
import hashlib import hashlib
import hmac import hmac