diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/inginious/frontend/submission_manager.py b/inginious/frontend/submission_manager.py index <HASH>..<HASH> 100644 --- a/inginious/frontend/submission_manager.py +++ b/inginious/frontend/submission_manager.py @@ -146,7 +146,7 @@ class WebAppSubmissionManager: if task.is_group_task() and not self....
Fix update of @username for group submissions
py
diff --git a/pygccxml/binary_parsers/parsers.py b/pygccxml/binary_parsers/parsers.py index <HASH>..<HASH> 100644 --- a/pygccxml/binary_parsers/parsers.py +++ b/pygccxml/binary_parsers/parsers.py @@ -23,6 +23,7 @@ import undname import warnings import exceptions import subprocess +from pygccxml import utils from...
misc: allow the process to continue, even in case the binary parser can not find the relevant declaration
py
diff --git a/_pytest/assertion/rewrite.py b/_pytest/assertion/rewrite.py index <HASH>..<HASH> 100644 --- a/_pytest/assertion/rewrite.py +++ b/_pytest/assertion/rewrite.py @@ -484,7 +484,7 @@ class AssertionRewriter(ast.NodeVisitor): res_var = self.variable() expl_list = self.assign(ast.List([], ast.Lo...
cast boolean thing to int to make py<I> happy
py
diff --git a/python/test/test_graph.py b/python/test/test_graph.py index <HASH>..<HASH> 100644 --- a/python/test/test_graph.py +++ b/python/test/test_graph.py @@ -89,7 +89,7 @@ def test_graph_model(model, seed): z3 = PF.affine(h, 5) elif model == "convolution": with nn.parameter_scope('conv1'...
Increase the map size for passing test.
py
diff --git a/ocrd/resolver.py b/ocrd/resolver.py index <HASH>..<HASH> 100644 --- a/ocrd/resolver.py +++ b/ocrd/resolver.py @@ -119,6 +119,8 @@ class Resolver(object): """ Download a file to the workspace. + Early Shortcut: If iit's a file-URL and already in the directory, keep it there. + ...
resolver: when downloading a file-url fall back to url for basename, fix #<I>
py
diff --git a/ddsc/core/localstore.py b/ddsc/core/localstore.py index <HASH>..<HASH> 100644 --- a/ddsc/core/localstore.py +++ b/ddsc/core/localstore.py @@ -58,7 +58,8 @@ class LocalProject(object): self.sent_to_remote = True def __str__(self): - child_str = ', '.join([str(child) for child in self....
fix sorting problem in tests Travis build failed with an error due to sorting child items: <URL>
py
diff --git a/gitlab_registry_usage/registry/low_level_api.py b/gitlab_registry_usage/registry/low_level_api.py index <HASH>..<HASH> 100644 --- a/gitlab_registry_usage/registry/low_level_api.py +++ b/gitlab_registry_usage/registry/low_level_api.py @@ -77,7 +77,7 @@ def get_registry_catalog(registry_url: str, auth_token:...
fetch more items for tags list as well
py
diff --git a/salt/modules/ansiblegate.py b/salt/modules/ansiblegate.py index <HASH>..<HASH> 100644 --- a/salt/modules/ansiblegate.py +++ b/salt/modules/ansiblegate.py @@ -135,12 +135,16 @@ class AnsibleModuleCaller(object): md_exc = subprocess.Popen(['python', module.__file__], ...
Take to the account popen's STDERR as well.
py
diff --git a/mlbgame/game.py b/mlbgame/game.py index <HASH>..<HASH> 100644 --- a/mlbgame/game.py +++ b/mlbgame/game.py @@ -275,20 +275,22 @@ class GameBoxScore(object): self.innings = [] # loops through the innings for x in sorted(data): - try: - result = { - ...
Fix error when casting blank literal score as int
py
diff --git a/pyclustering/nnet/som.py b/pyclustering/nnet/som.py index <HASH>..<HASH> 100755 --- a/pyclustering/nnet/som.py +++ b/pyclustering/nnet/som.py @@ -610,11 +610,12 @@ class som: """ self._data = data - self._sqrt_distances = self.__initialize_distances(self._size, self._l...
#<I>: Correction for previously introduced problem with CCORE.
py
diff --git a/topydo/ui/TodoListWidget.py b/topydo/ui/TodoListWidget.py index <HASH>..<HASH> 100644 --- a/topydo/ui/TodoListWidget.py +++ b/topydo/ui/TodoListWidget.py @@ -335,7 +335,7 @@ class TodoListWidget(urwid.LineBox): self._pp_offset += p_pattern result = None else: - ...
Use business days recurrence in column ui
py
diff --git a/yotta/init.py b/yotta/init.py index <HASH>..<HASH> 100644 --- a/yotta/init.py +++ b/yotta/init.py @@ -71,4 +71,10 @@ def execCommand(args): # TODO: more questions ( bugs url,...), check that the name is available in # the registry... + # Create folders while initing + folders_to_creat = [...
Creating folders while initing
py
diff --git a/example/turbine_cluster_modelchain_example.py b/example/turbine_cluster_modelchain_example.py index <HASH>..<HASH> 100644 --- a/example/turbine_cluster_modelchain_example.py +++ b/example/turbine_cluster_modelchain_example.py @@ -212,7 +212,7 @@ def run_example(): """ weather = mc_e.get_weather...
React to FutureWarning of pandas FutureWarning: Sorting because non-concatenation axis is not aligned. A future version of pandas will change to not sort by default. To accept the future behavior, pass 'sort=False'. To retain the current behavior and silence the warning, pass 'sort=True'.
py
diff --git a/etesync/service.py b/etesync/service.py index <HASH>..<HASH> 100644 --- a/etesync/service.py +++ b/etesync/service.py @@ -21,6 +21,7 @@ from furl import furl from .crypto import CryptoManager, HMAC_SIZE from . import exceptions +from ._version import __version__ API_PATH = ('api', 'v1') @@ -141,7 ...
Set user agent based on the lib's version.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -178,4 +178,16 @@ intersphinx_mapping = { 'python': ('https://docs.python.org/3.5/', None), 'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None), 'numpy': ('http://docs.scipy.org/doc/...
Attempting to create mockups to work around compiled code for rtd
py
diff --git a/omego/upgrade.py b/omego/upgrade.py index <HASH>..<HASH> 100644 --- a/omego/upgrade.py +++ b/omego/upgrade.py @@ -158,8 +158,8 @@ class Upgrade(object): def stop(self): try: print "Stopping server..." - self.run("admin status --nodeonly") - self.run("admin s...
Use the old env and omero binary to run stop commands
py
diff --git a/openfermionblueqat.py b/openfermionblueqat.py index <HASH>..<HASH> 100644 --- a/openfermionblueqat.py +++ b/openfermionblueqat.py @@ -1,3 +1,5 @@ +from openfermion.ops import QubitOperator + from circuit import Circuit from pauli import * @@ -6,3 +8,21 @@ def to_pauli_expr(qubit_operator): ret...
Add Blueqat to OpenFermion
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -64,7 +64,7 @@ def name_to_path(mod_name, ext): def c_ext(mod_name, language, includes, compile_args, link_args): mod_path = name_to_path(mod_name, language) return Extension(mod_name, [mod_path], include_dirs=inclu...
Correctly pass link_args in c_ext() in setup.py
py
diff --git a/allauth/account/auth_backends.py b/allauth/account/auth_backends.py index <HASH>..<HASH> 100644 --- a/allauth/account/auth_backends.py +++ b/allauth/account/auth_backends.py @@ -10,7 +10,10 @@ class AuthenticationBackend(ModelBackend): def authenticate(self, **credentials): lookup_params = {}...
email auth tries username upon failure. this keeps admin login from breaking
py
diff --git a/defender/tasks.py b/defender/tasks.py index <HASH>..<HASH> 100644 --- a/defender/tasks.py +++ b/defender/tasks.py @@ -1,12 +1,7 @@ from .data import store_login_attempt +from . import config -# not sure how to get this to look better. ideally we want to dynamically -# apply the celery decorator based on...
dynamic load celery (#<I>)
py
diff --git a/srp/_ctsrp.py b/srp/_ctsrp.py index <HASH>..<HASH> 100644 --- a/srp/_ctsrp.py +++ b/srp/_ctsrp.py @@ -268,7 +268,7 @@ def H_bn_str( hash_class, dest, n, s ): def calculate_x( hash_class, dest, salt, username, password ): - up = hash_class(username + six.b(':') + password).digest() + up = hash_cl...
#<I> Converting username and password to byte arrays in order to avoid the TypeError issue.
py
diff --git a/Malmo/samples/Python_examples/agent_visibility_test.py b/Malmo/samples/Python_examples/agent_visibility_test.py index <HASH>..<HASH> 100755 --- a/Malmo/samples/Python_examples/agent_visibility_test.py +++ b/Malmo/samples/Python_examples/agent_visibility_test.py @@ -387,6 +387,7 @@ for mission_no in xrange(...
Fixed regression caused by gung-ho removal of sleep.
py
diff --git a/.ci/ansible_install.py b/.ci/ansible_install.py index <HASH>..<HASH> 100755 --- a/.ci/ansible_install.py +++ b/.ci/ansible_install.py @@ -17,7 +17,7 @@ batches = [ ] batches.extend( - ['docker pull %s' % (ci_lib.image_for_distro(distro),)] + ['docker pull %s' % (ci_lib.image_for_distro(distro),),...
tests: Throttle docker pulls for Ansible tests I hope this will prevent AWS Elastic Container Registry returning <I>: Too Many Requests error, due to the burst of activity from multiple VMs, when a CI build begins.
py
diff --git a/sos/jupyter/completer.py b/sos/jupyter/completer.py index <HASH>..<HASH> 100644 --- a/sos/jupyter/completer.py +++ b/sos/jupyter/completer.py @@ -55,7 +55,7 @@ class SoS_MagicsCompleter(Completer): else: return None elif text.startswith('%') and line.startswith(text):...
Move interactive summary from README to a tutorial
py
diff --git a/mysql/toolkit/components/execute.py b/mysql/toolkit/components/execute.py index <HASH>..<HASH> 100644 --- a/mysql/toolkit/components/execute.py +++ b/mysql/toolkit/components/execute.py @@ -31,7 +31,7 @@ class ExecuteScript: self.dump_fails() def _get_commands(self, sql_script): - ...
Added print statement to _get_commands method
py
diff --git a/web/opensubmit/settings.py b/web/opensubmit/settings.py index <HASH>..<HASH> 100644 --- a/web/opensubmit/settings.py +++ b/web/opensubmit/settings.py @@ -112,10 +112,8 @@ HOST = config.get('server', 'HOST') HOST_DIR = config.get('server', 'HOST_DIR') if len(HOST_DIR) > 0: MAIN_URL = HOST + '/' + HOS...
Get rid of script name forcing, due to multiple bugs with different Apache versions
py
diff --git a/model_utils/models.py b/model_utils/models.py index <HASH>..<HASH> 100644 --- a/model_utils/models.py +++ b/model_utils/models.py @@ -1,5 +1,6 @@ from django.db import models from django.contrib.contenttypes.models import ContentType +from django.utils.translation import ugettext_lazy as _ from model_...
Marked a few labels for translation.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ requirements = [ # Protocol and data packages "pytmpdir >= 0.2.3", # A temporary directory, useful for extracting archives to "txhttputil >= 0.2.7", # Utility class for http requests - "vorte...
Updated vortexpy release for action delegates in proxy PEEK-<I>
py
diff --git a/install.py b/install.py index <HASH>..<HASH> 100644 --- a/install.py +++ b/install.py @@ -228,7 +228,8 @@ def install_standalone(venv): oq-platform-taxonomy oq-platform-taxtweb openquake.taxonomy'.split(): try: print("Applications " + app + " are not installed yet \n") - ...
try to use pycmd
py
diff --git a/tests/test_views.py b/tests/test_views.py index <HASH>..<HASH> 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -77,4 +77,7 @@ class TestReferencerError(Referencer): def references(self, uri, request): return None + def get_uri(self, request): + return None +
fix tests for python 2 #8
py
diff --git a/hearthstone/entities.py b/hearthstone/entities.py index <HASH>..<HASH> 100644 --- a/hearthstone/entities.py +++ b/hearthstone/entities.py @@ -4,6 +4,11 @@ from .enums import CardSet, CardType, GameTag, State, Step, Zone PLAYABLE_CARD_TYPES = ( CardType.HERO, CardType.MINION, CardType.SPELL, CardType.WEA...
entities: Use a hardcoded list of playable heroes
py
diff --git a/template_parser.py b/template_parser.py index <HASH>..<HASH> 100755 --- a/template_parser.py +++ b/template_parser.py @@ -278,6 +278,7 @@ def main(): os.system("docker ps -a | grep "+template_type+" | awk '{print $1}' | xargs docker kill") os.system("docker ps -a | grep "+template...
ensure management is good to go before start
py
diff --git a/pywb/rewrite/test/test_wburl.py b/pywb/rewrite/test/test_wburl.py index <HASH>..<HASH> 100644 --- a/pywb/rewrite/test/test_wburl.py +++ b/pywb/rewrite/test/test_wburl.py @@ -109,7 +109,7 @@ http://d0%D1%80%D0%B8%D0%BC%D0%B5%D1%80.%D0%B8%D1%81%D0%BF%D1%8B%D1%82%D0%B0%D0% http://xn--abcd # some bizzare i...
wburl test: better test for bad domain
py
diff --git a/neural/preprocess.py b/neural/preprocess.py index <HASH>..<HASH> 100644 --- a/neural/preprocess.py +++ b/neural/preprocess.py @@ -33,12 +33,12 @@ def create_censor_file(input_dset,out_prefix=None,fraction=0.1,clip_to=0.1,max_e if max_exclude and perc_outliers(outcount) > max_exclude: nl.notif...
bug fix in censor creation if you don't use `clip_to`
py
diff --git a/pyrallelsa.py b/pyrallelsa.py index <HASH>..<HASH> 100644 --- a/pyrallelsa.py +++ b/pyrallelsa.py @@ -67,9 +67,13 @@ def runner((id, pcp, psp, serialized_state, minutes, problem_data)): annealer = PCCls(state, problem_data) auto_schedule = annealer.auto(minutes=minutes) annealer....
Handle T falling to zero on some tasks
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,6 @@ -import sys from setuptools import setup, find_packages -from pip.req import parse_requirements -install_reqs = parse_requirements('./requirements.txt') -requirements = [str(ir.req) for ir in install_reqs] - -...
removing magic from setup.py to avoid messing with setup tools manifest files and random file includes
py
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index <HASH>..<HASH> 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -109,7 +109,7 @@ class build_ext(_build_ext): and get_abi3_suffix() ) if use_abi3: - ...
Extract a helper to capture the temporary workaround. Ref #<I>.
py
diff --git a/concentration/run.py b/concentration/run.py index <HASH>..<HASH> 100644 --- a/concentration/run.py +++ b/concentration/run.py @@ -64,6 +64,21 @@ def lose(): @hug.cli('break') def take_break(minutes: hug.types.number=5): """Enables temporarily breaking concentration""" + print("") + print("####...
Give the user time to change their mind before losing concentration
py
diff --git a/src/aws_encryption_sdk/streaming_client.py b/src/aws_encryption_sdk/streaming_client.py index <HASH>..<HASH> 100644 --- a/src/aws_encryption_sdk/streaming_client.py +++ b/src/aws_encryption_sdk/streaming_client.py @@ -755,11 +755,13 @@ class StreamDecryptor(_EncryptionStream): # pylint: disable=too-many-i...
add docstrings to deprecated properties
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -44,6 +44,7 @@ def setup_package(): 'base': 'requirements.txt', 'tests': 'requirements_tests.txt', 'docs': 'requirements_docs.txt' + 'plus': 'requirements_plus.txt' } reqs = _get_r...
add requirements_plus.txt to _groups_files
py
diff --git a/studio/controllers/mapfiles.py b/studio/controllers/mapfiles.py index <HASH>..<HASH> 100644 --- a/studio/controllers/mapfiles.py +++ b/studio/controllers/mapfiles.py @@ -85,7 +85,6 @@ class MapfilesController(BaseController): mapname = mapfile.get_name() map_pathname = h.gen_mapname() ...
remove FIXME - exceptions are caught by Pylons and converted into <I> Internal Server Error
py
diff --git a/phonopy/phonon/irreps.py b/phonopy/phonon/irreps.py index <HASH>..<HASH> 100644 --- a/phonopy/phonon/irreps.py +++ b/phonopy/phonon/irreps.py @@ -42,7 +42,12 @@ from phonopy.harmonic.derivative_dynmat import DerivativeOfDynamicalMatrix # from Wikipedia http://en.wikipedia.org/wiki/List_of_character_tables...
Another point group (C1) For the sake of completeness.
py
diff --git a/eppy/geometry/volume_zone.py b/eppy/geometry/volume_zone.py index <HASH>..<HASH> 100644 --- a/eppy/geometry/volume_zone.py +++ b/eppy/geometry/volume_zone.py @@ -37,7 +37,8 @@ def vol_tehrahedron(poly): b = np.array(poly[1]) c = np.array(poly[2]) d = np.array(poly[3]) - return abs(np.divi...
Replaced subtraction operators with explicit numpy functions in prep for switching to tinynumpy
py
diff --git a/salt/utils/master.py b/salt/utils/master.py index <HASH>..<HASH> 100755 --- a/salt/utils/master.py +++ b/salt/utils/master.py @@ -297,8 +297,8 @@ class MasterPillarUtil(object): if ((clear_pillar and clear_grains) or (clear_pillar and not minion_grains) or ...
fix Indentation in utils/master.py
py
diff --git a/ocrd_utils/setup.py b/ocrd_utils/setup.py index <HASH>..<HASH> 100644 --- a/ocrd_utils/setup.py +++ b/ocrd_utils/setup.py @@ -5,7 +5,7 @@ install_requires = open('requirements.txt').read().split('\n') setup( name='ocrd_utils', - version='2.36.0', + version='2.37.0', description='OCR-D fr...
:package: <I>
py
diff --git a/rig/version.py b/rig/version.py index <HASH>..<HASH> 100644 --- a/rig/version.py +++ b/rig/version.py @@ -1,3 +1,3 @@ """The current Rig version number. This definition is used throughout the software.""" -__version__ = "0.3.1" +__version__ = "0.4.0"
<I> Bumping the version number.
py
diff --git a/icrawler/builtin/baidu.py b/icrawler/builtin/baidu.py index <HASH>..<HASH> 100644 --- a/icrawler/builtin/baidu.py +++ b/icrawler/builtin/baidu.py @@ -29,7 +29,11 @@ class BaiduParser(Parser): return url def parse(self, response): - content = json.loads(response.content.decode('utf-8'...
exception handling when parsing baidu's response
py
diff --git a/mambugroup.py b/mambugroup.py index <HASH>..<HASH> 100644 --- a/mambugroup.py +++ b/mambugroup.py @@ -144,9 +144,9 @@ class MambuGroup(MambuStruct): except KeyError: formatoFecha="%Y-%m-%dT%H:%M:%S+0000" try: - self.attrs['theGroup']['loanCycle'] = int(self.attrs['...
Remove 'theGroup' field in MambuGroup. In fact, can't understand why this didn't broke before!! :-o
py
diff --git a/azure-mgmt-eventgrid/tests/test_azure_mgmt_eventgrid.py b/azure-mgmt-eventgrid/tests/test_azure_mgmt_eventgrid.py index <HASH>..<HASH> 100644 --- a/azure-mgmt-eventgrid/tests/test_azure_mgmt_eventgrid.py +++ b/azure-mgmt-eventgrid/tests/test_azure_mgmt_eventgrid.py @@ -42,7 +42,7 @@ class MgmtEventGridTest...
Resetting the subscription ID to enable playback of tests.
py
diff --git a/plex/__init__.py b/plex/__init__.py index <HASH>..<HASH> 100644 --- a/plex/__init__.py +++ b/plex/__init__.py @@ -2,7 +2,7 @@ import logging log = logging.getLogger(__name__) -__version__ = '0.6.4' +__version__ = '0.7.0' try:
Bumped version to <I>
py
diff --git a/holoviews/core/spaces.py b/holoviews/core/spaces.py index <HASH>..<HASH> 100644 --- a/holoviews/core/spaces.py +++ b/holoviews/core/spaces.py @@ -410,7 +410,9 @@ class Callable(param.Parameterized): inputs = param.List(default=[], doc=""" The list of inputs the callable function is wrapping....
Made callable_function positional arg of Callable
py
diff --git a/stellar_sdk/keypair.py b/stellar_sdk/keypair.py index <HASH>..<HASH> 100644 --- a/stellar_sdk/keypair.py +++ b/stellar_sdk/keypair.py @@ -268,7 +268,7 @@ class Keypair: return DecoratedSignature(hint, signature) def sign_payload_decorated(self, data: bytes) -> DecoratedSignature: - "...
fix: fix docs for `Keypair.sign_payload_decorated`
py
diff --git a/bokeh/__init__.py b/bokeh/__init__.py index <HASH>..<HASH> 100644 --- a/bokeh/__init__.py +++ b/bokeh/__init__.py @@ -6,7 +6,7 @@ del get_versions import sampledata def print_versions(): - """Print all the versions of software that Blaze relies on.""" + """Print all the versions of software that ...
Change Blaze reference to Bokeh
py
diff --git a/fusesoc/provider/github.py b/fusesoc/provider/github.py index <HASH>..<HASH> 100644 --- a/fusesoc/provider/github.py +++ b/fusesoc/provider/github.py @@ -7,10 +7,11 @@ import tarfile if sys.version_info[0] >= 3: import urllib.request as urllib + from urllib.error import URLError else: impo...
github.py: Fix import of URLError for python 2 URLError lives in another lib in python 2. Problem found and fixed by Bruno Morais
py
diff --git a/pyIOSXR/iosxr.py b/pyIOSXR/iosxr.py index <HASH>..<HASH> 100644 --- a/pyIOSXR/iosxr.py +++ b/pyIOSXR/iosxr.py @@ -26,12 +26,15 @@ def __execute_rpc__(device, rpc_command, timeout): rpc_command = '<?xml version="1.0" encoding="UTF-8"?><Request MajorVersion="1" MinorVersion="0">'+rpc_command+'</Request>...
replaced expect-method to a static string match to improve performance
py
diff --git a/aiohttp/client.py b/aiohttp/client.py index <HASH>..<HASH> 100644 --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -684,6 +684,9 @@ class ClientResponse: self.connection.close() else: self.connection.release() + if self._reader is not None: + ...
unset client connection parser. possible memory leak
py
diff --git a/salt/modules/win_path.py b/salt/modules/win_path.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_path.py +++ b/salt/modules/win_path.py @@ -76,8 +76,10 @@ def get_path(): ret = __salt__['reg.read_key']('HKEY_LOCAL_MACHINE', 'SYSTEM\\CurrentControlSet\\Control\...
Fix 'dict' object has no attribute split Fixing mixed result
py
diff --git a/flask_login.py b/flask_login.py index <HASH>..<HASH> 100644 --- a/flask_login.py +++ b/flask_login.py @@ -208,7 +208,7 @@ class LoginManager(object): import warnings warnings.warn("Warning setup_app is deprecated. Please use init_app", DeprecationWarning) - ...
add missing reference to `self` in setup_app()
py
diff --git a/pipenv/cli.py b/pipenv/cli.py index <HASH>..<HASH> 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -288,7 +288,7 @@ def get_downloads_info(names_map): for fname in os.listdir(project.download_location): # Get display name from filename mapping - name = convert_deps_from_pip(names_m...
can't use keys() in py3
py
diff --git a/test/full_test.py b/test/full_test.py index <HASH>..<HASH> 100755 --- a/test/full_test.py +++ b/test/full_test.py @@ -4,7 +4,7 @@ from retester import do_test, report # Clean the repo do_test("cd ../src/; make clean") -# Go through all our environments +# Make every target first, as some tests depend o...
Modifying full tests to build targets first as the corruption test uses multiple targets
py
diff --git a/mtp_common/user_admin/urls.py b/mtp_common/user_admin/urls.py index <HASH>..<HASH> 100644 --- a/mtp_common/user_admin/urls.py +++ b/mtp_common/user_admin/urls.py @@ -5,6 +5,6 @@ from . import views urlpatterns = [ url(r'^users/$', views.list_users, name='list-users'), url(r'^users/new/$', views....
Allow for editing/deletion of all valid usernames
py
diff --git a/deploy_stack.py b/deploy_stack.py index <HASH>..<HASH> 100755 --- a/deploy_stack.py +++ b/deploy_stack.py @@ -463,10 +463,7 @@ def _deploy_job(job_name, base_env, upgrade, charm_prefix, new_path, def get_machine_dns_name(client, machine): - if client.env.kvm: - timeout = 1200 - else: - ...
Remove unneeded kvm rule.
py
diff --git a/molo/profiles/forms.py b/molo/profiles/forms.py index <HASH>..<HASH> 100644 --- a/molo/profiles/forms.py +++ b/molo/profiles/forms.py @@ -71,6 +71,14 @@ class EditProfileForm(forms.ModelForm): model = UserProfile fields = ['alias', 'date_of_birth'] + def clean(self): + alias =...
ensure that something has been edited in the edit profile form
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,9 @@ setup( # The project's main homepage. url='https://github.com/StanfordBioinformatics/loom', - download_url='https://github.com/StanfordBioinformatics/loom/tarball/'+version, + + # Could use a u...
Removed Github download tarball for now.
py
diff --git a/pynipap/pynipap.py b/pynipap/pynipap.py index <HASH>..<HASH> 100644 --- a/pynipap/pynipap.py +++ b/pynipap/pynipap.py @@ -584,7 +584,7 @@ class Pool(Pynipap): try: pool = Pool.list({'id': id})[0] - except KeyError: + except (IndexError, KeyError): raise Ni...
A few fixes for pynipap This sets search_options default to {} for the prefix search and smart_search, just like it's for pool and VRF searches. Catch IndexErrors in Pool get() as it would otherwise fail when trying to get a non-existing pool.
py
diff --git a/km3pipe/db.py b/km3pipe/db.py index <HASH>..<HASH> 100644 --- a/km3pipe/db.py +++ b/km3pipe/db.py @@ -19,7 +19,7 @@ from km3pipe.tools import Timer from km3pipe.config import Config from km3pipe.logger import logging -if sys.version_info.major > 2: +if sys.version_info[0] > 2: from urllib.parse im...
Python <I> support for looking up Python version info
py
diff --git a/icekit/plugins/base.py b/icekit/plugins/base.py index <HASH>..<HASH> 100644 --- a/icekit/plugins/base.py +++ b/icekit/plugins/base.py @@ -2,6 +2,7 @@ import operator from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ValidationError +from django.utils.six.move...
Add reduce for python-3 compatibility.
py
diff --git a/bl/config.py b/bl/config.py index <HASH>..<HASH> 100644 --- a/bl/config.py +++ b/bl/config.py @@ -26,9 +26,11 @@ class Config(Dict): 1 """ - def __init__(self, filename, interpolation=ExtendedInterpolation(), + Interpolation = ExtendedInterpolation() + + def __init__(self, filen...
Config class now has a class variable, Interpolation, which holds an interpolation object (instantiated) as the default interpolation method.
py
diff --git a/sendgrid/helpers/mail/header.py b/sendgrid/helpers/mail/header.py index <HASH>..<HASH> 100644 --- a/sendgrid/helpers/mail/header.py +++ b/sendgrid/helpers/mail/header.py @@ -17,6 +17,7 @@ class Header(object): """ self._key = None self._value = None + self._validator.valid...
Added validations for SendGrid API key
py
diff --git a/simplesqlite/sqlquery.py b/simplesqlite/sqlquery.py index <HASH>..<HASH> 100644 --- a/simplesqlite/sqlquery.py +++ b/simplesqlite/sqlquery.py @@ -16,7 +16,7 @@ from ._error import SqlSyntaxError from ._func import validate_table_name -class SqlQuery: +class SqlQuery(object): """ Support clas...
Change old-style class defined to new-style class
py
diff --git a/hawkular/alerts.py b/hawkular/alerts.py index <HASH>..<HASH> 100644 --- a/hawkular/alerts.py +++ b/hawkular/alerts.py @@ -58,7 +58,7 @@ class FullTrigger(ApiOject): udict = FullTrigger.transform_dict_to_underscore(dictionary) self.trigger = Trigger(udict.get('trigger')) self.damp...
Fix FullTrigger conditions list attribute instantiation Currently, FullTrigger conditions list is instantiated as Dampening class object, instead of Condition object.
py
diff --git a/lib/stsci/tools/tester.py b/lib/stsci/tools/tester.py index <HASH>..<HASH> 100644 --- a/lib/stsci/tools/tester.py +++ b/lib/stsci/tools/tester.py @@ -72,7 +72,7 @@ def test(modname, mode='nose', *args, **kwds): break if dirname is None : - print 'no tests found in: %s' % repr...
in certain situations, where this file is not correctly 2to3-ed, but this file is used during installation - then these non-py3k-correct print statements cause errors git-svn-id: <URL>
py
diff --git a/lazyconf/lazy/merge.py b/lazyconf/lazy/merge.py index <HASH>..<HASH> 100644 --- a/lazyconf/lazy/merge.py +++ b/lazyconf/lazy/merge.py @@ -93,9 +93,15 @@ class Merge(): schema[i] = str(schema[i]) s = type(schema[i]) + # If there is a...
Merger now leaves data alone if schema is list and data is string (unless data is empty)
py
diff --git a/tensorflow_datasets/core/features/bounding_boxes.py b/tensorflow_datasets/core/features/bounding_boxes.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/core/features/bounding_boxes.py +++ b/tensorflow_datasets/core/features/bounding_boxes.py @@ -101,6 +101,7 @@ class BBoxFeature(feature.Tensor): ...
Fix single bbox for repr
py
diff --git a/pipenv/cli.py b/pipenv/cli.py index <HASH>..<HASH> 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -64,7 +64,9 @@ def do_where(virtualenv=False, bare=True): if not virtualenv: location = project.pipfile_location - if not bare: + if not location: + click.echo('No P...
Better output for where command when no Pipfile Presently when there is no Pipfile inside a directory, running `pip --where` gives `Pipfile found at None. Considering this to be the project home.`. This seems ambiguous and I've changed it to ``` $ pipenv --where No Pipfile present at project home. Consider running `pi...
py
diff --git a/test/test_cli_commands_on_yubikey.py b/test/test_cli_commands_on_yubikey.py index <HASH>..<HASH> 100644 --- a/test/test_cli_commands_on_yubikey.py +++ b/test/test_cli_commands_on_yubikey.py @@ -53,6 +53,13 @@ def _is_NEO(): return False +def _no_attestation(): + if _one_yubikey: + re...
tests: don't run attestation test on older keys
py
diff --git a/src/SpiffWorkflow/specs/TaskSpec.py b/src/SpiffWorkflow/specs/TaskSpec.py index <HASH>..<HASH> 100644 --- a/src/SpiffWorkflow/specs/TaskSpec.py +++ b/src/SpiffWorkflow/specs/TaskSpec.py @@ -219,6 +219,11 @@ class TaskSpec(object): def _update_state(self, my_task): + """ + Called when...
minor refactoring and more docs for TaskSpec._update_state*().
py
diff --git a/cleverhans/attack_bundling.py b/cleverhans/attack_bundling.py index <HASH>..<HASH> 100644 --- a/cleverhans/attack_bundling.py +++ b/cleverhans/attack_bundling.py @@ -468,8 +468,8 @@ def run_batch_with_goal(sess, model, x, y, adv_x_val, criteria, attack_configs, should_save = False new_time = time.t...
fix saving / print path so failures are more obvious
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -114,7 +114,7 @@ metadata = dict( license = "LGPLv2+", long_description = readme, platforms = '', - url = 'https://github.com/taschini/crlibm', + url = 'https://gi...
Fixed descriptive link in setup.py.
py
diff --git a/src/python/dxpy/scripts/dx_build_app.py b/src/python/dxpy/scripts/dx_build_app.py index <HASH>..<HASH> 100755 --- a/src/python/dxpy/scripts/dx_build_app.py +++ b/src/python/dxpy/scripts/dx_build_app.py @@ -610,6 +610,15 @@ def build_and_upload_locally(src_dir, mode, overwrite=False, publish=False, dest ...
Add comments warning against the use of dx_build_app.main().
py
diff --git a/websockets/test_uri.py b/websockets/test_uri.py index <HASH>..<HASH> 100644 --- a/websockets/test_uri.py +++ b/websockets/test_uri.py @@ -14,7 +14,8 @@ VALID_URIS = [ INVALID_URIS = [ 'http://localhost/', 'https://localhost/', - 'http://localhost/path#fragment' + 'ws://localhost/path#fragm...
Fix a test case and add another.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,6 +15,10 @@ setup( 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Topic :: Software Development' + 'Programming Language :: Python :: 2', + 'Progra...
Updates setup.py with Python programming language classifiers.
py
diff --git a/cli/cumulusci.py b/cli/cumulusci.py index <HASH>..<HASH> 100644 --- a/cli/cumulusci.py +++ b/cli/cumulusci.py @@ -427,6 +427,8 @@ def ci_apextestsdb_upload(config, environment): os.environ.get('CIRCLE_ARTIFACTS'), config.json_output, ) + click.echo('results_file_ur...
Actually pass results_file_url for CircleCI
py
diff --git a/mutagen/oggopus.py b/mutagen/oggopus.py index <HASH>..<HASH> 100644 --- a/mutagen/oggopus.py +++ b/mutagen/oggopus.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2012, 2013 Christoph Reiter +# Copyright (C) 2012, 2013 Christoph Reiter # # This program is free software; you can redistribute i...
oggopus.py: consistent headers, removed unnecessary variable, replaced line continuation with parentheses and added some for clarity.
py
diff --git a/gsheets/backend.py b/gsheets/backend.py index <HASH>..<HASH> 100644 --- a/gsheets/backend.py +++ b/gsheets/backend.py @@ -36,7 +36,8 @@ def iterfiles(service, name=None, mimeType=SHEET, order=FILEORDER): # noqa: N80 params['q'] = ' and '.join(q) while True: - response = service.file...
assign request object to facilitate debugging
py
diff --git a/pulsar/client/action_mapper.py b/pulsar/client/action_mapper.py index <HASH>..<HASH> 100644 --- a/pulsar/client/action_mapper.py +++ b/pulsar/client/action_mapper.py @@ -325,9 +325,14 @@ class BaseAction(object): def __str__(self): as_dict = self.to_dict() attribute_str = "" + ...
Improve __str__ for path actions.
py
diff --git a/raiden/blockchain_events_handler.py b/raiden/blockchain_events_handler.py index <HASH>..<HASH> 100644 --- a/raiden/blockchain_events_handler.py +++ b/raiden/blockchain_events_handler.py @@ -256,7 +256,6 @@ def handle_channel_settled(raiden: 'RaidenService', event: Event): channel_identifier = data['ar...
Provide the extra blockhash arg to all ContractReceive state changes
py
diff --git a/validator/sawtooth_validator/gossip/gossip.py b/validator/sawtooth_validator/gossip/gossip.py index <HASH>..<HASH> 100644 --- a/validator/sawtooth_validator/gossip/gossip.py +++ b/validator/sawtooth_validator/gossip/gossip.py @@ -313,7 +313,7 @@ class Topology(Thread): to allow. ...
Add a name to the Gossip Topology thread
py
diff --git a/tests/func/test_version.py b/tests/func/test_version.py index <HASH>..<HASH> 100644 --- a/tests/func/test_version.py +++ b/tests/func/test_version.py @@ -17,6 +17,7 @@ def test_info_in_repo(repo_dir, dvc_repo, caplog): assert re.search(re.compile(r"Python version: \d\.\d\.\d"), caplog.text) asser...
Test for issue #<I> added.
py
diff --git a/google-images-download.py b/google-images-download.py index <HASH>..<HASH> 100644 --- a/google-images-download.py +++ b/google-images-download.py @@ -2,6 +2,8 @@ #Import Libraries +#coding: UTF-8 + import time #Importing the time library to check the time of code execution import sys #Impor...
Set default encoding as UTF-8. It is for adjust to Japanese,Korea and Chinese.
py
diff --git a/spyderlib/utils/inspector/sphinxify.py b/spyderlib/utils/inspector/sphinxify.py index <HASH>..<HASH> 100644 --- a/spyderlib/utils/inspector/sphinxify.py +++ b/spyderlib/utils/inspector/sphinxify.py @@ -45,6 +45,8 @@ def is_sphinx_markup(docstring): return ("`" in docstring or "::" in docstring) def...
Object Inspector/sphinxify.py: Add a missing docstring
py
diff --git a/adminrestrict/test_settings.py b/adminrestrict/test_settings.py index <HASH>..<HASH> 100644 --- a/adminrestrict/test_settings.py +++ b/adminrestrict/test_settings.py @@ -42,13 +42,7 @@ MIDDLEWARE_CLASSES = ( 'adminrestrict.middleware.AdminPagesRestrictMiddleware' ) -if django.VERSION[0] >= 2: - ...
set MIDDLEWARE = MIDDLEWARE_CLASSES
py
diff --git a/girder/__main__.py b/girder/__main__.py index <HASH>..<HASH> 100644 --- a/girder/__main__.py +++ b/girder/__main__.py @@ -40,11 +40,14 @@ def main(): action="store_true") parser.add_argument("-d", "--database", help="to what database url should Girder ...
Add support for the --host flag to girder-server The short form (-H) and long form are both consistent with our usage in girder-sftpd.
py
diff --git a/examples/mnist.py b/examples/mnist.py index <HASH>..<HASH> 100644 --- a/examples/mnist.py +++ b/examples/mnist.py @@ -1,12 +1,11 @@ from __future__ import print_function import plac -from thinc.neural.vec2vec import ReLu, Softmax +from thinc.neural.vec2vec import Model, ReLu, Softmax from thinc.loss i...
Fix imports, use more dropout
py
diff --git a/ship/subversion.py b/ship/subversion.py index <HASH>..<HASH> 100644 --- a/ship/subversion.py +++ b/ship/subversion.py @@ -13,6 +13,11 @@ class Subversion: self.version = version self.logger = ShipLogger() + def get_tags(self): + tagsList= local("svn list " + self.url + "/tags"...
Added the get_tags from the subversion repository of a project
py
diff --git a/qa_tests/hazard/classical/case_11/test.py b/qa_tests/hazard/classical/case_11/test.py index <HASH>..<HASH> 100644 --- a/qa_tests/hazard/classical/case_11/test.py +++ b/qa_tests/hazard/classical/case_11/test.py @@ -25,7 +25,7 @@ from openquake.export import hazard as hazard_export from qa_tests import _uti...
qa_tests/hazard/classical/case_<I>/test: Renamed the test case class to fix minor copy-paste error.
py
diff --git a/theanets/main.py b/theanets/main.py index <HASH>..<HASH> 100644 --- a/theanets/main.py +++ b/theanets/main.py @@ -132,7 +132,7 @@ class Experiment: that have no global defaults, e.g., network architecture.) ''' self.args, self.kwargs = climate.parse_args(**overrides) - if ...
Fix a bug preventing --hidden-activation from working properly.
py
diff --git a/intake/cli/server/server.py b/intake/cli/server/server.py index <HASH>..<HASH> 100644 --- a/intake/cli/server/server.py +++ b/intake/cli/server/server.py @@ -250,18 +250,7 @@ class ServerSourceHandler(tornado.web.RequestHandler): cat = cat.search(*args, **kwargs) ...
Refactor out workaround now that getitem works.
py
diff --git a/functionfs/tests/host.py b/functionfs/tests/host.py index <HASH>..<HASH> 100644 --- a/functionfs/tests/host.py +++ b/functionfs/tests/host.py @@ -19,6 +19,7 @@ from . import common def main(): with usb1.USBContext() as context: + context.setDebug(usb1.LOG_LEVEL_DEBUG) handle = conte...
tests.host: Enable libusb1's debug logging.
py
diff --git a/photutils/aperture.py b/photutils/aperture.py index <HASH>..<HASH> 100644 --- a/photutils/aperture.py +++ b/photutils/aperture.py @@ -87,8 +87,8 @@ class Aperture(object): Parameters ---------- - ax : matplotlib Axes instance, optional - If `None`, then the current Axe...
Create sphinx link to matplotlib in plot docs
py