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

View File

@@ -1 +1,3 @@
# encoding: utf-8
from httprunner.task import HttpRunner

View File

@@ -1,6 +1,9 @@
# encoding: utf-8
"""
Built-in dependent functions used in YAML/JSON testcases.
"""
import datetime
import json
import random

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
import argparse
import multiprocessing
import os

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
import re
import time

View File

@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# encoding: utf-8
"""
httprunner.compat

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
import copy
import os
import re

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
class EventHook(object):
"""
Simple event class used to provide hooks for different types of events in HttpRunner.

View File

@@ -1,4 +1,5 @@
#coding: utf-8
# encoding: utf-8
import json
try:

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
import io
import multiprocessing
import os

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
import logging
import sys

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
import io
import os
import platform

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
import re
from httprunner import exception, logger, testcase, utils

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
from unittest.case import SkipTest
from httprunner import exception, logger, response, testcase, utils

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
import copy
import sys
import unittest

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
import ast
import csv
import io

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
import copy
import hashlib
import hmac