diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/squad/ci/admin.py b/squad/ci/admin.py index <HASH>..<HASH> 100644 --- a/squad/ci/admin.py +++ b/squad/ci/admin.py @@ -56,6 +56,7 @@ class TestJobFailureFilter(admin.SimpleListFilter): class TestJobAdmin(admin.ModelAdmin): list_display = ('backend', 'target', 'submitted', 'fetched', 'success', 'last_f...
ci/admin: avoid loading all Build and TestRun objects This makes editing TestJobs pratically impossible.
py
diff --git a/ecell4/util/simulation.py b/ecell4/util/simulation.py index <HASH>..<HASH> 100644 --- a/ecell4/util/simulation.py +++ b/ecell4/util/simulation.py @@ -4,7 +4,6 @@ from .session import load_world, Session from .decorator import get_model, reset_model from . import viz from ..extra import unit -from ..extr...
Remove an old line (#<I>)
py
diff --git a/src/marcxml2mods/mods_postprocessor/monograph.py b/src/marcxml2mods/mods_postprocessor/monograph.py index <HASH>..<HASH> 100755 --- a/src/marcxml2mods/mods_postprocessor/monograph.py +++ b/src/marcxml2mods/mods_postprocessor/monograph.py @@ -208,7 +208,8 @@ def fix_location_tag(dom): if not urls: ...
#6: Fixed bugs in fix_location_tag().
py
diff --git a/distroinfo/query.py b/distroinfo/query.py index <HASH>..<HASH> 100644 --- a/distroinfo/query.py +++ b/distroinfo/query.py @@ -1,6 +1,7 @@ from __future__ import print_function import collections import re +import six from distroinfo import exception @@ -54,7 +55,7 @@ def filter_pkgs(pkgs, rexen): ...
Fix Python 3 compatibility for distroinfo/query.py In filter_pkgs() we were using basestring, which is not compatible with Python 3. Using six.string_types instead. Change-Id: I<I>b8a<I>c<I>c<I>ef<I>d<I>eea<I>fb2
py
diff --git a/openquake/calculators/scenario_damage.py b/openquake/calculators/scenario_damage.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/scenario_damage.py +++ b/openquake/calculators/scenario_damage.py @@ -139,8 +139,9 @@ class ScenarioDamageCalculator(base.RiskCalculator): collapsed = numpy.z...
Cleanup [skip CI]
py
diff --git a/chessboard/pieces.py b/chessboard/pieces.py index <HASH>..<HASH> 100644 --- a/chessboard/pieces.py +++ b/chessboard/pieces.py @@ -131,7 +131,8 @@ class Piece(object): @property def territory(self): """ Return the cached territory occupied by the piece. """ - cache_key = (self.boar...
PEP8: line too long.
py
diff --git a/salt/modules/network.py b/salt/modules/network.py index <HASH>..<HASH> 100644 --- a/salt/modules/network.py +++ b/salt/modules/network.py @@ -746,7 +746,6 @@ def get_route(iface=None,dest=None): routes = [] if iface is not None and dest is None: output = __salt__['cmd.run']('ip route sho...
and now network.get_routes(dest=default) works
py
diff --git a/account/models.py b/account/models.py index <HASH>..<HASH> 100644 --- a/account/models.py +++ b/account/models.py @@ -377,7 +377,7 @@ class AccountDeletion(models.Model): before = timezone.now() - datetime.timedelta(hours=hours_ago) count = 0 for account_deletion in cls.objects.f...
Fix a bug introduced by last commit Fix a bug introduced by porting deletion callback to hookset: In AccountDeletion model, "account_delete_expunge" and "account_delete_mark" were still called from settings, instead of using the hookset.
py
diff --git a/tests/pytests/scenarios/failover/multimaster/test_failover_master.py b/tests/pytests/scenarios/failover/multimaster/test_failover_master.py index <HASH>..<HASH> 100644 --- a/tests/pytests/scenarios/failover/multimaster/test_failover_master.py +++ b/tests/pytests/scenarios/failover/multimaster/test_failover...
Oop, forgot to whitelist for Windows
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ print("""----------------------------------- matplotlib_version = '>=2.1.1' if sys.version_info[0] == 2: matplotlib_version += ',<3.0.0' -elif sys.version_info[0:2] == (3, 5): +else: matplotlib_versi...
Pin matplotlib for all pythons to avoid installing of broken pre-release version
py
diff --git a/tests/functional/python/py2index.py b/tests/functional/python/py2index.py index <HASH>..<HASH> 100644 --- a/tests/functional/python/py2index.py +++ b/tests/functional/python/py2index.py @@ -63,10 +63,9 @@ def _parse_python_version(s: str) -> PythonVersion: def _parse_output_path(s: str) -> Optional[pathli...
Make py2index behaviour more obvious
py
diff --git a/napalm_ios/ios.py b/napalm_ios/ios.py index <HASH>..<HASH> 100644 --- a/napalm_ios/ios.py +++ b/napalm_ios/ios.py @@ -1044,6 +1044,8 @@ class IOSDriver(NetworkDriver): if fields[2] == 'dhcp': cmd = "show interface {} | in Internet address is".format(int...
Fixing parsing of shutdown DHCP interfaces
py
diff --git a/ayrton/utils.py b/ayrton/utils.py index <HASH>..<HASH> 100644 --- a/ayrton/utils.py +++ b/ayrton/utils.py @@ -126,7 +126,8 @@ def close (f): if isinstance (f, int): os.close (f) else: - f.close () + if f is not None: + f.close () exce...
[*] handle uninitialized file-like objects in close().
py
diff --git a/internetarchive/files.py b/internetarchive/files.py index <HASH>..<HASH> 100644 --- a/internetarchive/files.py +++ b/internetarchive/files.py @@ -68,6 +68,9 @@ class BaseFile(object): for key in file_metadata: setattr(self, key, file_metadata[key]) + # An additional, more ord...
Add a metadata attribute to File. This enables direct access to the file metadata without having to extract the relevant metadata keys from the object's attributes. It is the most maintainable choice in case of future additions like new non-metadata attributes. Since the Internet Archive always creates some attribut...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages, Extension import sys, os -version = '0.2' +version = '0.1.0' if sys.platform != 'darwin': raise Exception(
Okay this is the real version. <I>.
py
diff --git a/jsonrpc_http/MiddlewareEngine.py b/jsonrpc_http/MiddlewareEngine.py index <HASH>..<HASH> 100644 --- a/jsonrpc_http/MiddlewareEngine.py +++ b/jsonrpc_http/MiddlewareEngine.py @@ -307,8 +307,9 @@ class MiddlewareEngine(object): colnames = [colname.strip() for colname in columnstring.split(',')] Q =...
don't parse whereclause for now
py
diff --git a/leonardo/module/web/widget/htmltext/models.py b/leonardo/module/web/widget/htmltext/models.py index <HASH>..<HASH> 100644 --- a/leonardo/module/web/widget/htmltext/models.py +++ b/leonardo/module/web/widget/htmltext/models.py @@ -15,7 +15,7 @@ from leonardo.module.web.widgets.forms import WidgetUpdateForm ...
change charfield to text for htmltext :D
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,13 +38,14 @@ def scm_version(): from setuptools_scm import get_version from setuptools_scm.hacks import parse_pkginfo from setuptools_scm import git + from setuptools_scm import hg from setuptools_sc...
Fix setup install setuptools-scm with a Mercurial repo
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -20,7 +20,7 @@ import os import sys -import sphinx.locale +import sphinx.application import sphinx_readable_theme sys.path.insert(0, os.path.abspath('..')) @@ -201,11 +201,10 @@ def locale_fallback_deco...
Another attempt to correct the locale selection issue
py
diff --git a/ryu/services/protocols/bgp/rtconf/neighbors.py b/ryu/services/protocols/bgp/rtconf/neighbors.py index <HASH>..<HASH> 100644 --- a/ryu/services/protocols/bgp/rtconf/neighbors.py +++ b/ryu/services/protocols/bgp/rtconf/neighbors.py @@ -73,7 +73,7 @@ ENABLED = 'enabled' CHANGES = 'changes' LOCAL_ADDRESS = '...
bgp: fix conflict of PEER_NEXT_HOP and NEXT_HOP value The third is fix to a conflict of PEER_NEXT_HOP value in neighbors.py. There is a conflict between PEER_NEXT_HOP in neighbors.py and NEXT_HOP in api/base.py. As a result of the conflict, the correct validator for PEER_NEXT_HOP is not used when neighbir_add is exec...
py
diff --git a/multiset.py b/multiset.py index <HASH>..<HASH> 100644 --- a/multiset.py +++ b/multiset.py @@ -194,35 +194,16 @@ class basemultiset(Set): ## Alias methods - these methods are just names for other operations - def cardinality(self): - return len(self) - - def underlying_set(self): - return unique_ele...
multiset.py-<I> - Some rearranging.
py
diff --git a/cyphi/subsystem.py b/cyphi/subsystem.py index <HASH>..<HASH> 100644 --- a/cyphi/subsystem.py +++ b/cyphi/subsystem.py @@ -78,7 +78,8 @@ class Subsystem: Two subsystems are equal if their sets of nodes, current and past states, and networks are equal.""" return ((set(self.node_ind...
Also compare cut in Subsystem.__eq__
py
diff --git a/bin/fasta-subset.py b/bin/fasta-subset.py index <HASH>..<HASH> 100755 --- a/bin/fasta-subset.py +++ b/bin/fasta-subset.py @@ -1,7 +1,7 @@ #!/usr/bin/env python """ -Given a set of FASTA sequence identifiers from sys.argv or in a file, read +Given a set of FASTA sequence identifiers from sys.argv and/or...
Tiny change to docstring.
py
diff --git a/tensor2tensor/rl/trainer_model_based_params.py b/tensor2tensor/rl/trainer_model_based_params.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/rl/trainer_model_based_params.py +++ b/tensor2tensor/rl/trainer_model_based_params.py @@ -325,6 +325,14 @@ def rlmb_base_stochastic_discrete(): @registry.regi...
Added longer model training option for RLMB PiperOrigin-RevId: <I>
py
diff --git a/PyGitUp/gitup.py b/PyGitUp/gitup.py index <HASH>..<HASH> 100644 --- a/PyGitUp/gitup.py +++ b/PyGitUp/gitup.py @@ -580,12 +580,13 @@ Project URL: https://github.com/msiemens/PyGitUp @click.command(epilog=EPILOG) -@click.option('--version', is_flag=True, +@click.option('-V', '--version', is_flag=Tru...
added short options for easy commandline use (#<I>) * added short options for easy commandline use * changed version flag to V
py
diff --git a/openquake/server/db/actions.py b/openquake/server/db/actions.py index <HASH>..<HASH> 100644 --- a/openquake/server/db/actions.py +++ b/openquake/server/db/actions.py @@ -55,7 +55,8 @@ def reset_is_running(db): :param db: a :class:`openquake.server.dbapi.Db` instance """ - db('UPDATE job SET ...
Set also status to 'failed' when resetting 'is_running'
py
diff --git a/ask-sdk-core/ask_sdk_core/api_client.py b/ask-sdk-core/ask_sdk_core/api_client.py index <HASH>..<HASH> 100644 --- a/ask-sdk-core/ask_sdk_core/api_client.py +++ b/ask-sdk-core/ask_sdk_core/api_client.py @@ -146,6 +146,6 @@ class DefaultApiClient(ApiClient): for key, values in six.iteritems(head...
Change incorrect literal check (#<I>)
py
diff --git a/spyder/plugins/plots/widgets/figurebrowser.py b/spyder/plugins/plots/widgets/figurebrowser.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/plots/widgets/figurebrowser.py +++ b/spyder/plugins/plots/widgets/figurebrowser.py @@ -917,7 +917,7 @@ class FigureThumbnail(QWidget): # See spyder-ide...
Change color to #<I>CD2 for dark theme
py
diff --git a/salt/states/file.py b/salt/states/file.py index <HASH>..<HASH> 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -72,6 +72,7 @@ import hashlib import logging import tempfile import traceback +import urlparse logger = logging.getLogger(__name__) @@ -327,7 +328,7 @@ def absent(name): d...
fixes towards accepting more sources for a file
py
diff --git a/leeroy/retry.py b/leeroy/retry.py index <HASH>..<HASH> 100644 --- a/leeroy/retry.py +++ b/leeroy/retry.py @@ -21,9 +21,9 @@ def main(): repo_config = github.get_repo_config(app, args.repo) pull_request = github.get_pull_request(app, repo_config, args.pull_request) head_repo_name, shas = gith...
use BUILD_COMMITS policy when retrying builds
py
diff --git a/latools/processes/signal_id.py b/latools/processes/signal_id.py index <HASH>..<HASH> 100644 --- a/latools/processes/signal_id.py +++ b/latools/processes/signal_id.py @@ -105,8 +105,11 @@ def autorange(xvar, sig, gwin=7, swin=None, win=30, if thresh is None: if tsigs.ndim == 1: + ...
don't scale if only one variable
py
diff --git a/ciscosparkapi/__init__.py b/ciscosparkapi/__init__.py index <HASH>..<HASH> 100644 --- a/ciscosparkapi/__init__.py +++ b/ciscosparkapi/__init__.py @@ -1,4 +1,4 @@ -import exceptions +from exceptions import ciscosparkapiException, SparkApiError from restsession import RestSession from api.rooms import Room...
Bring exceptions into package scope Expose package exceptions in the package’s namespace.
py
diff --git a/saltapi/netapi/rest_cherrypy/app.py b/saltapi/netapi/rest_cherrypy/app.py index <HASH>..<HASH> 100644 --- a/saltapi/netapi/rest_cherrypy/app.py +++ b/saltapi/netapi/rest_cherrypy/app.py @@ -440,9 +440,20 @@ class LowDataAdapter(object): :status 401: authentication required :status 406: re...
Add basic hypermedia info about available clients/formats
py
diff --git a/autopep8.py b/autopep8.py index <HASH>..<HASH> 100755 --- a/autopep8.py +++ b/autopep8.py @@ -262,10 +262,10 @@ def continued_indentation(logical_line, tokens, indent_level, noqa): error = ('E122', one_indented) elif indent[depth]: error = ('E127',...
Adjust to match pep8 See jcrocholl/pep8@2a<I>c<I>b<I>bb<I>e9c9e6bdaa. This doesn't really matter since the elif and else case are the same anyway. But I'd prefer to match pep8's code.
py
diff --git a/moclo/moclo/core/_assembly.py b/moclo/moclo/core/_assembly.py index <HASH>..<HASH> 100644 --- a/moclo/moclo/core/_assembly.py +++ b/moclo/moclo/core/_assembly.py @@ -113,6 +113,8 @@ class AssemblyManager(object): ants['data_file_division'] = 'SYN' ants['comment'] = [ 'Generat...
Fix test failure caused in `moclo.core._assembly`
py
diff --git a/ropetest/refactor/renametest.py b/ropetest/refactor/renametest.py index <HASH>..<HASH> 100644 --- a/ropetest/refactor/renametest.py +++ b/ropetest/refactor/renametest.py @@ -1,3 +1,4 @@ +import sys import unittest import rope.base.codeanalyze @@ -572,6 +573,18 @@ class RenameRefactoringTest(unittest.Te...
renametest: added a failing test for with variable leak
py
diff --git a/pythonforandroid/recipes/genericndkbuild/__init__.py b/pythonforandroid/recipes/genericndkbuild/__init__.py index <HASH>..<HASH> 100644 --- a/pythonforandroid/recipes/genericndkbuild/__init__.py +++ b/pythonforandroid/recipes/genericndkbuild/__init__.py @@ -19,6 +19,8 @@ class GenericNDKBuildRecipe(Bootstr...
Fixed genericndkbuild recipe for NDK <I>+
py
diff --git a/browsertime/visualmetrics-portable.py b/browsertime/visualmetrics-portable.py index <HASH>..<HASH> 100644 --- a/browsertime/visualmetrics-portable.py +++ b/browsertime/visualmetrics-portable.py @@ -2109,9 +2109,10 @@ def calculate_contentful_speed_index(progress, directory): content.append(val...
Fix the check for a max contentful value of 0. (#<I>)
py
diff --git a/netpyne/batch.py b/netpyne/batch.py index <HASH>..<HASH> 100644 --- a/netpyne/batch.py +++ b/netpyne/batch.py @@ -555,12 +555,11 @@ wait with open(jobPath+'.run', 'a+') as outf, open(jobPath+'.err', 'w') as errf: pids.append(Po...
terminate unfinished jobs after each gen
py
diff --git a/vyper/builtin_functions/utils.py b/vyper/builtin_functions/utils.py index <HASH>..<HASH> 100644 --- a/vyper/builtin_functions/utils.py +++ b/vyper/builtin_functions/utils.py @@ -4,10 +4,23 @@ from vyper.codegen.global_context import GlobalContext from vyper.codegen.stmt import parse_body +def _strip_s...
fix source code annotation for sqrt (#<I>) the `parse_body` call in `generate_inline_function` attaches incorrect position info into the generated code.
py
diff --git a/kafka/client_async.py b/kafka/client_async.py index <HASH>..<HASH> 100644 --- a/kafka/client_async.py +++ b/kafka/client_async.py @@ -102,7 +102,8 @@ class KafkaClient(object): partition leadership changes to proactively discover any new brokers or partitions. Default: 300000 ...
Update docstring to match conn.py's (#<I>)
py
diff --git a/pyt/vulnerabilities/vulnerabilities.py b/pyt/vulnerabilities/vulnerabilities.py index <HASH>..<HASH> 100644 --- a/pyt/vulnerabilities/vulnerabilities.py +++ b/pyt/vulnerabilities/vulnerabilities.py @@ -336,11 +336,15 @@ def how_vulnerable( return VulnerabilityType.FALSE elif i...
<I>: Allow the user to cancel interactive mode
py
diff --git a/angr/analyses/cfg_fast.py b/angr/analyses/cfg_fast.py index <HASH>..<HASH> 100644 --- a/angr/analyses/cfg_fast.py +++ b/angr/analyses/cfg_fast.py @@ -2435,7 +2435,7 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method except AngrTranslationError: ...
CFGFast: make sure block.capstone.insns is not empty before accessing the first instruction.
py
diff --git a/paramiko/client.py b/paramiko/client.py index <HASH>..<HASH> 100644 --- a/paramiko/client.py +++ b/paramiko/client.py @@ -30,6 +30,7 @@ from paramiko.agent import Agent from paramiko.common import * from paramiko.config import SSH_PORT from paramiko.dsskey import DSSKey +from paramiko.ecdsakey import EC...
SSHClient: Allow to use ECDSA private keys. Nowadays, ECDSA keys became more widespread, so it might be a good idea to support those private keys as well.
py
diff --git a/ReText/window.py b/ReText/window.py index <HASH>..<HASH> 100644 --- a/ReText/window.py +++ b/ReText/window.py @@ -261,9 +261,9 @@ class ReTextWindow(QMainWindow): self.symbolBox.activated.connect(self.insertSymbol) self.updateStyleSheet() menubar = self.menuBar() - menuFile = menubar.addMenu(self...
Underline character mnemonics. In order to indicate keyboard shortcuts for items in the menu bar.
py
diff --git a/myfitnesspal/client.py b/myfitnesspal/client.py index <HASH>..<HASH> 100644 --- a/myfitnesspal/client.py +++ b/myfitnesspal/client.py @@ -294,7 +294,7 @@ class Client(MFPBase): break # remove entries that are not within the dates specified - for date in measurements.keys(...
[#<I>] Applying fix to measurement iteration; thanks @dchristle for the heads-up.
py
diff --git a/anharmonic/BTE_RTA.py b/anharmonic/BTE_RTA.py index <HASH>..<HASH> 100644 --- a/anharmonic/BTE_RTA.py +++ b/anharmonic/BTE_RTA.py @@ -55,7 +55,7 @@ class BTE_RTA: for i, (grid_point, w) in enumerate(zip(self._grid_points, self._grid_weights)): ...
Under development of BTE-RTA
py
diff --git a/fluxions/__init__.py b/fluxions/__init__.py index <HASH>..<HASH> 100644 --- a/fluxions/__init__.py +++ b/fluxions/__init__.py @@ -1 +1 @@ -__all__ = ['fluxions'] +__all__ = ['./fluxions']
Corrected path reference in __all__ statement of __init__.py
py
diff --git a/tests/test_product_view.py b/tests/test_product_view.py index <HASH>..<HASH> 100644 --- a/tests/test_product_view.py +++ b/tests/test_product_view.py @@ -91,7 +91,7 @@ class TestCloromapView(unittest.TestCase): self.assertTrue((heatmap.image.data[1, heatmap.image.data[1] > 0] == 0).all()) ...
better array `== True` filtering
py
diff --git a/datascience/tables.py b/datascience/tables.py index <HASH>..<HASH> 100644 --- a/datascience/tables.py +++ b/datascience/tables.py @@ -126,8 +126,9 @@ class Table(collections.abc.MutableMapping): return self.column_labels.index(column_label) def apply(self, fn, column_label): - """App...
Make docstring for Table.apply a little nicer Changes the API a bit to return a NumPy array instead of a list
py
diff --git a/sphinx_pyreverse/uml_generate_directive.py b/sphinx_pyreverse/uml_generate_directive.py index <HASH>..<HASH> 100644 --- a/sphinx_pyreverse/uml_generate_directive.py +++ b/sphinx_pyreverse/uml_generate_directive.py @@ -106,7 +106,7 @@ class UMLGenerateDirective(Directive): if module_name not in s...
Slightly prettier debug logging under sphinx verbose (-vvv)
py
diff --git a/pymyq/__init__.py b/pymyq/__init__.py index <HASH>..<HASH> 100644 --- a/pymyq/__init__.py +++ b/pymyq/__init__.py @@ -44,6 +44,7 @@ class MyQAPI: DOOR_STATE = { '1': STATE_OPEN, #'open', '2': STATE_CLOSED, #'close', + '3': STATE_OPEN, #'stopped', '4': STATE_OPEN, #'op...
Added state for stopped door (open)
py
diff --git a/src/auditlog/diff.py b/src/auditlog/diff.py index <HASH>..<HASH> 100644 --- a/src/auditlog/diff.py +++ b/src/auditlog/diff.py @@ -15,13 +15,14 @@ def get_fields_in_model(instance): :return: The list of fields for the given model (instance) :rtype: list """ + from auditlog.models import Au...
Exclude AuditlogHistoryField from diffs
py
diff --git a/test/test_web.py b/test/test_web.py index <HASH>..<HASH> 100644 --- a/test/test_web.py +++ b/test/test_web.py @@ -83,7 +83,7 @@ def _rebuild_basic_html(basedir): }) tools.run_asv_with_conf(conf, 'run', 'ALL', - '--show-stderr', '--quick', '--bench=params_e...
TST: ensure better only track benchmarks run in web tests Previously, the regex matched also "params_examples.FunctionParamSuite.time_func(<function track_param>)" which (being a timing benchmark) yielded nondeterministic results.
py
diff --git a/psamm/commands/excelexport.py b/psamm/commands/excelexport.py index <HASH>..<HASH> 100644 --- a/psamm/commands/excelexport.py +++ b/psamm/commands/excelexport.py @@ -14,6 +14,7 @@ # along with PSAMM. If not, see <http://www.gnu.org/licenses/>. # # Copyright 2015 Keith Dufault-Thompson <keitht547@my.ur...
excelexport: Fix error where str was used instead of text_type
py
diff --git a/accounts/models.py b/accounts/models.py index <HASH>..<HASH> 100644 --- a/accounts/models.py +++ b/accounts/models.py @@ -49,6 +49,9 @@ class DeployUser(AbstractEmailUser): objects = UserManager() def user_is_admin(self): + if not self.pk: + return False + for group i...
Resolved error with account user model methods failing when working with a new user model.
py
diff --git a/pywal/__main__.py b/pywal/__main__.py index <HASH>..<HASH> 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -124,6 +124,7 @@ def process_args(args): colors_plain = colors.file(args.f) if args.b: + args.b = "#%s" % (args.b.strip("#")) colors_plain["special"]["backgro...
-b: Error handling.
py
diff --git a/test_elasticsearch_dsl/test_integration/test_fields.py b/test_elasticsearch_dsl/test_integration/test_fields.py index <HASH>..<HASH> 100644 --- a/test_elasticsearch_dsl/test_integration/test_fields.py +++ b/test_elasticsearch_dsl/test_integration/test_fields.py @@ -2,8 +2,6 @@ from elasticsearch_dsl.search...
Leftover print. Thanks robhudson!
py
diff --git a/src/radical/ensemblemd/single_cluster_environment.py b/src/radical/ensemblemd/single_cluster_environment.py index <HASH>..<HASH> 100644 --- a/src/radical/ensemblemd/single_cluster_environment.py +++ b/src/radical/ensemblemd/single_cluster_environment.py @@ -129,12 +129,10 @@ class SingleClusterEnvironment(...
do not exit at done or cancelled pilot
py
diff --git a/src/rinoh/tool.py b/src/rinoh/tool.py index <HASH>..<HASH> 100644 --- a/src/rinoh/tool.py +++ b/src/rinoh/tool.py @@ -27,11 +27,13 @@ from rinoh.stylesheets import matcher from rinoh.template import DocumentTemplate, TemplateConfigurationFile from rinoh.templates import Article + +DESCRIPTION = 'Render...
rinoh: force the 'prog' name The stand-alone applications would display other strings such as 'rinoh-script.py' and 'tool.py'.
py
diff --git a/tests/integration/files/log_handlers/runtests_log_handler.py b/tests/integration/files/log_handlers/runtests_log_handler.py index <HASH>..<HASH> 100644 --- a/tests/integration/files/log_handlers/runtests_log_handler.py +++ b/tests/integration/files/log_handlers/runtests_log_handler.py @@ -23,6 +23,7 @@ fro...
import six runtests log handler
py
diff --git a/datajoint/connection.py b/datajoint/connection.py index <HASH>..<HASH> 100644 --- a/datajoint/connection.py +++ b/datajoint/connection.py @@ -9,6 +9,7 @@ import logging from getpass import getpass import re import pathlib +import shutil from .settings import config from . import errors @@ -258,9 +25...
fix bug in recursive purging of the cache folder
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='pybundle', - version='0.1.2', + version='0.1.3', packages=find_packages(), url='https://github.com/mrstephenneal/pybundle', lic...
Updated to version <I>
py
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index <HASH>..<HASH> 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1553,7 +1553,8 @@ class Cmd(cmd.Cmd): def get_all_commands(self) -> List[str]: """Returns a list of all commands.""" - return [cur_name[3:] for cur_name in self.get_names() if cur_name.s...
Fixed get_all_commands and get_help_topics to only return function names
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ if sys.version_info.major < 3: if sys.version_info < (2, 7, 9): ''' request[security] extras ''' - install_requires += ['pyOpenSSL>=0.13', 'ndg-httpsclient', 'pyasn1'] + install_req...
Remove pyasn1 from install_requires The package is being removed from install_requires because it was already part of dependency trees of both PyOpenSSL and ndg-httpsclient. PyOpenSSL is also a dependency of ndg-httpsclient, but ndg-httpsclient has no requirement on its version, so this package is not removed from in...
py
diff --git a/openquake/commonlib/logictree.py b/openquake/commonlib/logictree.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/logictree.py +++ b/openquake/commonlib/logictree.py @@ -68,15 +68,13 @@ def get_effective_rlzs(rlzs): and yield the first representative of each group. """ effective = []...
Do not change the rlz ordinal in get_efftive_rlzs
py
diff --git a/wd_property_store.py b/wd_property_store.py index <HASH>..<HASH> 100644 --- a/wd_property_store.py +++ b/wd_property_store.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + __author__ = 'Sebastian Burgstaller and Andra Waagmeester' __licence__ = 'GPLv3'
utf-8 encoding added
py
diff --git a/xdataweb/modules/mongo.py b/xdataweb/modules/mongo.py index <HASH>..<HASH> 100644 --- a/xdataweb/modules/mongo.py +++ b/xdataweb/modules/mongo.py @@ -11,7 +11,7 @@ def decode(s, argname, resp): raise class Handler: - def go(self, server, db, coll, method='find', query=None, limit=1000, field...
Added sort capability to mongo module.
py
diff --git a/Qt.py b/Qt.py index <HASH>..<HASH> 100644 --- a/Qt.py +++ b/Qt.py @@ -218,6 +218,7 @@ _common_members = { "QConicalGradient", "QContextMenuEvent", "QCursor", + "QDesktopServices", "QDoubleValidator", "QDrag", "QDragEnterEvent", @@ -346,6 +347,17 ...
Add new members as a result of CY<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,8 @@ setup( test_suite = 'nose.collector', install_requires = [ 'httplib2', - 'oauth2client' + 'oauth2client', + 'yapsy' ], ) \ No newline at end of file
Add yapsy to list of requirements
py
diff --git a/client/sources/ok_test/sqlite.py b/client/sources/ok_test/sqlite.py index <HASH>..<HASH> 100644 --- a/client/sources/ok_test/sqlite.py +++ b/client/sources/ok_test/sqlite.py @@ -105,6 +105,13 @@ class SqliteConsole(interpreter.Console): self._diff_output(expected, actual) def _diff_output(s...
Fix bug in correct sqlite3 installation.
py
diff --git a/voluptuous.py b/voluptuous.py index <HASH>..<HASH> 100644 --- a/voluptuous.py +++ b/voluptuous.py @@ -1472,7 +1472,7 @@ def Url(v): """ try: parsed = urlparse.urlparse(v) - if not parsed.scheme or not parsed.netloc: + if not parsed.scheme or not parsed.netloc or "." not in ...
Updated url validation code for url's with no domain
py
diff --git a/salt/beacons/diskusage.py b/salt/beacons/diskusage.py index <HASH>..<HASH> 100644 --- a/salt/beacons/diskusage.py +++ b/salt/beacons/diskusage.py @@ -68,7 +68,8 @@ def beacon(config): ''' ret = [] - for mount in config: + for mounts in config: + mount = mounts.keys()[0] ...
Fix diskusage beacon Stop trying to load the entire mount dict as the mount point.
py
diff --git a/selenium_test/steps/caret.py b/selenium_test/steps/caret.py index <HASH>..<HASH> 100644 --- a/selenium_test/steps/caret.py +++ b/selenium_test/steps/caret.py @@ -89,7 +89,7 @@ def step_impl(context): last_click = context.last_click caret_pos = wedutil.caret_selection_pos(driver) - assert_equ...
Relaxed caret position check. This check kept failing on OS X due to a rounding error.
py
diff --git a/pandas/io/tests/test_pytables.py b/pandas/io/tests/test_pytables.py index <HASH>..<HASH> 100644 --- a/pandas/io/tests/test_pytables.py +++ b/pandas/io/tests/test_pytables.py @@ -33,13 +33,19 @@ class TesttHDFStore(unittest.TestCase): def test_factory_fun(self): try: - with get_st...
TST: added a couple more tests for get_store function
py
diff --git a/contrib/spindle/src/python/pants/contrib/spindle/tasks/spindle_gen.py b/contrib/spindle/src/python/pants/contrib/spindle/tasks/spindle_gen.py index <HASH>..<HASH> 100644 --- a/contrib/spindle/src/python/pants/contrib/spindle/tasks/spindle_gen.py +++ b/contrib/spindle/src/python/pants/contrib/spindle/tasks/...
sort fix for spindle gen Bugs closed: <I> Reviewed at <URL>
py
diff --git a/saltcloud/clouds/openstack.py b/saltcloud/clouds/openstack.py index <HASH>..<HASH> 100644 --- a/saltcloud/clouds/openstack.py +++ b/saltcloud/clouds/openstack.py @@ -100,6 +100,7 @@ Using the new syntax: import time import logging import socket +import pprint # Import libcloud from libcloud.compute....
import pprint required for openstack provider
py
diff --git a/src/hunter/__init__.py b/src/hunter/__init__.py index <HASH>..<HASH> 100644 --- a/src/hunter/__init__.py +++ b/src/hunter/__init__.py @@ -253,7 +253,8 @@ def wrap(function_to_trace=None, **trace_options): Not(When( Query(calls_gt=0, depth=0) & Not(Query(kind='r...
Fix buggy handling of last event in local mode.
py
diff --git a/searx/engines/qwant.py b/searx/engines/qwant.py index <HASH>..<HASH> 100644 --- a/searx/engines/qwant.py +++ b/searx/engines/qwant.py @@ -59,7 +59,7 @@ category_to_keyword = { } # search-url -url = 'https://api.qwant.com/v3/search/{keyword}?q={query}&count={count}&offset={offset}' +url = 'https://api.q...
[fix] Qwant: Remove extra q from URL (#<I>) Fixes #<I>
py
diff --git a/OpenPNM/Physics/__GenericPhysics__.py b/OpenPNM/Physics/__GenericPhysics__.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Physics/__GenericPhysics__.py +++ b/OpenPNM/Physics/__GenericPhysics__.py @@ -88,6 +88,25 @@ class GenericPhysics(OpenPNM.Base.Core): else: # ...Then check Network ...
Adding a property attribute to the GenericPhysics class that allows users to reset which Phase it is associated with. Seems to work, but will write several tests to be sure.
py
diff --git a/moto/s3/models.py b/moto/s3/models.py index <HASH>..<HASH> 100644 --- a/moto/s3/models.py +++ b/moto/s3/models.py @@ -22,7 +22,7 @@ class FakeKey(object): def __init__(self, name, value, storage="STANDARD", etag=None, is_versioned=False, version_id=0): self.name = name self.value = v...
Make S3 Model Timestamps Consistent By Using UTC UTC seems to be default timezone for AWS, and the time strings are reporting as GMT, yet the date time is the local time zone.
py
diff --git a/patroni/postgresql.py b/patroni/postgresql.py index <HASH>..<HASH> 100644 --- a/patroni/postgresql.py +++ b/patroni/postgresql.py @@ -230,14 +230,10 @@ class Postgresql: @staticmethod def build_connstring(conn): """ - >>> Postgresql.build_connstring({'host': '127.0.0.1', 'port': '...
Convert build_connstring into a one-liner, per code review by Alex.
py
diff --git a/salt/modules/win_pkg.py b/salt/modules/win_pkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_pkg.py +++ b/salt/modules/win_pkg.py @@ -90,7 +90,10 @@ def latest_version(*names, **kwargs): # get latest available (from win_repo) version of package pkg_info = _get_package_info(name) ...
Fixed stacktrace on package name not found
py
diff --git a/programs/thellier_gui3.0.py b/programs/thellier_gui3.0.py index <HASH>..<HASH> 100755 --- a/programs/thellier_gui3.0.py +++ b/programs/thellier_gui3.0.py @@ -309,6 +309,7 @@ class Arai_GUI(wx.Frame): else: self.WD = os.getcwd() dialog.Destroy() + self.WD = ...
fix potential path problem with thellier gui
py
diff --git a/core/convert.py b/core/convert.py index <HASH>..<HASH> 100644 --- a/core/convert.py +++ b/core/convert.py @@ -13,6 +13,7 @@ class UnitByte(IntEnum): zettabyte = 2 ** 70 yottabyte = 2 ** 80 + @staticmethod def convert(byte_value, unitbyte): converted_value = None @@ -30,4 +31,...
Added static method "get_name_reduction", which can be used for extracting UnitByte value's name reduction.
py
diff --git a/safe/impact_functions/volcanic/volcano_point_population/test/test_volcano_point_population.py b/safe/impact_functions/volcanic/volcano_point_population/test/test_volcano_point_population.py index <HASH>..<HASH> 100644 --- a/safe/impact_functions/volcanic/volcano_point_population/test/test_volcano_point_pop...
Fix failing test for #<I>
py
diff --git a/quantecon/markov/__init__.py b/quantecon/markov/__init__.py index <HASH>..<HASH> 100644 --- a/quantecon/markov/__init__.py +++ b/quantecon/markov/__init__.py @@ -2,5 +2,6 @@ Markov Chain SubPackge """ -from .core import MarkovChain, mc_compute_stationary, mc_sample_path +from .core import MarkovChain ...
Separate out items that may be eligible for deprecation, leaving them for now as used in examples
py
diff --git a/kubespawner/objects.py b/kubespawner/objects.py index <HASH>..<HASH> 100644 --- a/kubespawner/objects.py +++ b/kubespawner/objects.py @@ -27,6 +27,7 @@ def make_pod( node_selector, run_as_uid, fs_gid, + run_privileged, env, working_dir, volumes, @@ -119,6 +120,8 @@ def make...
add flag to run with privileged security context add flag to run with privileged security context
py
diff --git a/lokingyql/contrib/table/binder.py b/lokingyql/contrib/table/binder.py index <HASH>..<HASH> 100755 --- a/lokingyql/contrib/table/binder.py +++ b/lokingyql/contrib/table/binder.py @@ -25,7 +25,7 @@ class Binder(object): # Adding inputs passed as parameters if inputs: - self.inp...
fix #<I>: it's done
py
diff --git a/FlowCal/plot.py b/FlowCal/plot.py index <HASH>..<HASH> 100644 --- a/FlowCal/plot.py +++ b/FlowCal/plot.py @@ -56,6 +56,7 @@ import matplotlib.ticker import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib.font_manager import FontProperties +import warnings # Use defaul...
Added warning and documentation about matplotlib <I> issue.
py
diff --git a/basecrm/services.py b/basecrm/services.py index <HASH>..<HASH> 100644 --- a/basecrm/services.py +++ b/basecrm/services.py @@ -384,7 +384,7 @@ class LeadsService(object): """ Allowed attributes for Lead to send to Base CRM backend servers. """ - OPTS_KEYS_TO_PERSIST = ['address', 'custom_f...
IR-<I>: missing source_id in leads
py
diff --git a/indra/statements.py b/indra/statements.py index <HASH>..<HASH> 100644 --- a/indra/statements.py +++ b/indra/statements.py @@ -1052,6 +1052,9 @@ class Statement(object): if sub_id: graph.add_edge(node_id, sub_id, label=('%s' % k)) else: + ...
Shorten SBO URL in Statement graph
py
diff --git a/cogen/web/wsgi.py b/cogen/web/wsgi.py index <HASH>..<HASH> 100644 --- a/cogen/web/wsgi.py +++ b/cogen/web/wsgi.py @@ -72,7 +72,7 @@ import async quoted_slash = re.compile("(?i)%2F") useless_socket_errors = {} for _ in ("EPIPE", "ETIMEDOUT", "ECONNREFUSED", "ECONNRESET", - "EHOSTDOWN", "EHOSTUNRE...
added ENOTCONN to the ignorable errors
py
diff --git a/sentinelhub/data_request.py b/sentinelhub/data_request.py index <HASH>..<HASH> 100644 --- a/sentinelhub/data_request.py +++ b/sentinelhub/data_request.py @@ -95,7 +95,7 @@ class DataRequest(ABC): ``data_filter=[0, 2, -1]`` the method will return only 1st, 3rd and last item. Default filter is `...
threads by default is #processes multiplied by 5 Number of threads started for a request is by default (None) number of processes multiplied by 5, see <URL>
py
diff --git a/ariba/summary.py b/ariba/summary.py index <HASH>..<HASH> 100644 --- a/ariba/summary.py +++ b/ariba/summary.py @@ -382,7 +382,8 @@ class Summary: if self.verbose: print('Making Phandango csv file', csv_file, flush=True) csv_file = self.outprefix + '.phandango.csv' ...
Write colour columns in phandango file
py
diff --git a/scuba/__main__.py b/scuba/__main__.py index <HASH>..<HASH> 100755 --- a/scuba/__main__.py +++ b/scuba/__main__.py @@ -184,9 +184,6 @@ def main(argv=None): # interactive: keep STDIN open '-i', - # allocate TTY - '-t', - # remove container after exit '--rm'...
Only pass --tty to 'docker run' if stdout is a tty This fixes #<I>.
py
diff --git a/core/dbt/task/runnable.py b/core/dbt/task/runnable.py index <HASH>..<HASH> 100644 --- a/core/dbt/task/runnable.py +++ b/core/dbt/task/runnable.py @@ -305,15 +305,6 @@ class GraphRunnableTask(ManifestTask): def create_schemas(self, adapter, selected_uids): required_schemas = self.get_model_s...
Remove profile schema as we no longer run 'use schema'
py
diff --git a/libs/response.py b/libs/response.py index <HASH>..<HASH> 100644 --- a/libs/response.py +++ b/libs/response.py @@ -123,7 +123,7 @@ class Response(object): """Returns a PyQuery object of a request's content""" if hasattr(self, '_doc'): return self._doc - doc = self._doc ...
Fix bug: PyQuery argument with encoding declaration.
py
diff --git a/tests/test_toolbox.py b/tests/test_toolbox.py index <HASH>..<HASH> 100644 --- a/tests/test_toolbox.py +++ b/tests/test_toolbox.py @@ -28,6 +28,14 @@ class LogTest(unittest.TestCase): self.tb.add({'file':'tool2.py', 'function':'do_stuff', 'args':['list'], 'return':['int']}) self.assertEqua...
test for get_tool_by_name
py
diff --git a/fusionbox/fabric_helpers.py b/fusionbox/fabric_helpers.py index <HASH>..<HASH> 100644 --- a/fusionbox/fabric_helpers.py +++ b/fusionbox/fabric_helpers.py @@ -39,7 +39,7 @@ def update_git(branch): try: loc = tempfile.mkdtemp() put(StringIO(local('git rev-parse %s' % branch, capture=Tr...
cd to git root before archiving, the whole project always needs to be updated
py