diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/spyder/widgets/sourcecode/codeeditor.py b/spyder/widgets/sourcecode/codeeditor.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/sourcecode/codeeditor.py +++ b/spyder/widgets/sourcecode/codeeditor.py @@ -1614,7 +1614,7 @@ class CodeEditor(TextEditBaseWidget): self.update_extra_selections() ...
Hid linter selection after 5s
py
diff --git a/src/toil/test/sort/sortTest.py b/src/toil/test/sort/sortTest.py index <HASH>..<HASH> 100755 --- a/src/toil/test/sort/sortTest.py +++ b/src/toil/test/sort/sortTest.py @@ -49,9 +49,9 @@ from toil.leader import FailedJobsException log = logging.getLogger(__name__) -defaultLineLen = int(os.environ.get('TO...
Don't try and parse string floats as ints in Python 3
py
diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py index <HASH>..<HASH> 100755 --- a/pythonforandroid/toolchain.py +++ b/pythonforandroid/toolchain.py @@ -974,8 +974,11 @@ class Bootstrap(object): @classmethod def list_bootstraps(cls): + forbidden_dirs = ('__pycache__', ) ...
Fixed bootstrap lookup in python3 and added default
py
diff --git a/scenarios/kubernetes_janitor.py b/scenarios/kubernetes_janitor.py index <HASH>..<HASH> 100755 --- a/scenarios/kubernetes_janitor.py +++ b/scenarios/kubernetes_janitor.py @@ -69,6 +69,7 @@ def clean_project(project, hours=24, dryrun=False): BLACKLIST = [ '-soak', # We need to keep deployed resources...
Let janitor skip kubernetes-scale project (#<I>)
py
diff --git a/raiden/blockchain/abi.py b/raiden/blockchain/abi.py index <HASH>..<HASH> 100644 --- a/raiden/blockchain/abi.py +++ b/raiden/blockchain/abi.py @@ -2,7 +2,7 @@ import os from ethereum import _solidity -from ethereum.abi import event_id, _normalize_name +from ethereum.abi import event_id, normalize_name ...
ethereum renamed _normalize_name to normalize_name
py
diff --git a/etcd3/events.py b/etcd3/events.py index <HASH>..<HASH> 100644 --- a/etcd3/events.py +++ b/etcd3/events.py @@ -23,12 +23,6 @@ class DeleteEvent(Event): pass -event_classes = { - 'PUT': PutEvent, - 'DELETE': DeleteEvent -} - - def new_event(event): """ Wrap a raw gRPC event in a fri...
Remove event_classes dict
py
diff --git a/bokeh/glyphs.py b/bokeh/glyphs.py index <HASH>..<HASH> 100644 --- a/bokeh/glyphs.py +++ b/bokeh/glyphs.py @@ -89,16 +89,20 @@ class DataSpec(BaseProperty): def to_dict(self, obj): # Build the complete dict - value = getattr(obj, "_"+self.name, self.default) + value = getattr(o...
accomodate change in bokehjs to distinguish user supplied values from defaults
py
diff --git a/cheroot/server.py b/cheroot/server.py index <HASH>..<HASH> 100644 --- a/cheroot/server.py +++ b/cheroot/server.py @@ -1178,7 +1178,7 @@ class HTTPRequest: if dict(self.outheaders).get(b'Connection', b'') == b'Keep-Alive': self.outheaders.append(( b'Keep-Alive', - ...
Update cheroot/server.py
py
diff --git a/pybasicbayes/distributions.py b/pybasicbayes/distributions.py index <HASH>..<HASH> 100644 --- a/pybasicbayes/distributions.py +++ b/pybasicbayes/distributions.py @@ -565,7 +565,11 @@ class Gaussian(_GaussianBase, GibbsSampling, MeanField, MeanFieldSVI, Collapsed, # NOTE: resampling will set mu_mf ...
put back #<I> with tweaked logic (new test passes)
py
diff --git a/nodeconductor/structure/tests/test_user.py b/nodeconductor/structure/tests/test_user.py index <HASH>..<HASH> 100644 --- a/nodeconductor/structure/tests/test_user.py +++ b/nodeconductor/structure/tests/test_user.py @@ -581,7 +581,7 @@ class CustomUsersFilterTest(test.APITransactionTestCase): @freeze_ti...
Renamed test to UserUpdateTest (WAL-<I>)
py
diff --git a/cluster/juju/return-node-ips.py b/cluster/juju/return-node-ips.py index <HASH>..<HASH> 100755 --- a/cluster/juju/return-node-ips.py +++ b/cluster/juju/return-node-ips.py @@ -1,7 +1,13 @@ #!/usr/bin/env python import json import sys -nodes = json.loads(sys.argv[1]) -for num in nodes: - print num['Stdo...
Added protetecion if the arguments are not there.
py
diff --git a/bang/providers/aws.py b/bang/providers/aws.py index <HASH>..<HASH> 100644 --- a/bang/providers/aws.py +++ b/bang/providers/aws.py @@ -110,14 +110,19 @@ class EC2(Consul): creds = self.provider.creds self.access_key_id = creds[A.creds.ACCESS_KEY_ID] self.secret_key = creds[A.creds...
Fix up launching ec2 instances
py
diff --git a/gignore/__init__.py b/gignore/__init__.py index <HASH>..<HASH> 100644 --- a/gignore/__init__.py +++ b/gignore/__init__.py @@ -11,6 +11,7 @@ def get_version(): class Gignore(object): BASE_URL = 'https://raw.githubusercontent.com/github/gitignore/master/' name = None + file_content = None ...
Add file_content with setter/getter
py
diff --git a/plenum/client/wallet.py b/plenum/client/wallet.py index <HASH>..<HASH> 100644 --- a/plenum/client/wallet.py +++ b/plenum/client/wallet.py @@ -424,6 +424,9 @@ class WalletCompatibilityBackend(JSONBackend): to the current version. """ + def _getUpToDateClassName(self, pickledClassName): + ...
INDY-<I>: Wallet migration for rebranding (#<I>) Supported wallet migration for rebranding
py
diff --git a/cpu6809.py b/cpu6809.py index <HASH>..<HASH> 100755 --- a/cpu6809.py +++ b/cpu6809.py @@ -774,7 +774,7 @@ class CPU(object): ea = signed8(offset) + self.program_counter elif addr_mode == 0xd: # 1101 0xd offset = self.read_pc_word() - ea = signed...
FIXME: word and signed8 ???
py
diff --git a/bcbio/variation/strelka2.py b/bcbio/variation/strelka2.py index <HASH>..<HASH> 100644 --- a/bcbio/variation/strelka2.py +++ b/bcbio/variation/strelka2.py @@ -188,8 +188,9 @@ def _af_annotate_and_filter(paired, items, in_file, out_file): else: # germline? alt_counts = ...
Strelka2 AF calc: silent div by zero and replace AF=inf with AF=<I>
py
diff --git a/salt/modules/logrotate.py b/salt/modules/logrotate.py index <HASH>..<HASH> 100644 --- a/salt/modules/logrotate.py +++ b/salt/modules/logrotate.py @@ -41,7 +41,7 @@ def _parse_conf(conf_file=default_conf): ''' ret = {} mode = 'single' - multi_name = '' + multi_names = [] multi = {}...
fix parse of { on next line
py
diff --git a/kubespawner/reflector.py b/kubespawner/reflector.py index <HASH>..<HASH> 100644 --- a/kubespawner/reflector.py +++ b/kubespawner/reflector.py @@ -105,6 +105,9 @@ class NamespacedResourceReflector(LoggingConfigurable): self.start() + def __del__(self): + self.stop() + def _list_a...
Add __del__ for reflector Event reflectors are stopped when pods are successfully launched. slow/failed launch needs this to cleanup watcher.
py
diff --git a/telethon_generator/parser/tl_parser.py b/telethon_generator/parser/tl_parser.py index <HASH>..<HASH> 100644 --- a/telethon_generator/parser/tl_parser.py +++ b/telethon_generator/parser/tl_parser.py @@ -17,11 +17,13 @@ class TLParser: # Read all the lines from the .tl file for li...
Fix TLParser not stripping inline comments
py
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py index <HASH>..<HASH> 100644 --- a/spyder/app/mainwindow.py +++ b/spyder/app/mainwindow.py @@ -2728,16 +2728,10 @@ class MainWindow(QMainWindow): msgBox.setStandardButtons(QMessageBox.Ok) from spyder.config.gui import is_dark_interfac...
Main Window: Remove code that only applied to PyQt4
py
diff --git a/tests/test_tokenizer.py b/tests/test_tokenizer.py index <HASH>..<HASH> 100644 --- a/tests/test_tokenizer.py +++ b/tests/test_tokenizer.py @@ -119,6 +119,13 @@ def test_bracket_period(EN): tokens = EN(text) assert tokens[len(tokens) - 1].orth_ == u'.' + +def test_ie(EN): + text = u"It's medio...
* Upd tokenizer with i.e. tests
py
diff --git a/cherrypy/_cpchecker.py b/cherrypy/_cpchecker.py index <HASH>..<HASH> 100644 --- a/cherrypy/_cpchecker.py +++ b/cherrypy/_cpchecker.py @@ -71,8 +71,9 @@ class Checker(object): for section, entries in app.config.iteritems(): if section.startswith('/'): for k...
Added other site-config-only namespaces to the new checker.
py
diff --git a/src/you_get/extractors/youku.py b/src/you_get/extractors/youku.py index <HASH>..<HASH> 100644 --- a/src/you_get/extractors/youku.py +++ b/src/you_get/extractors/youku.py @@ -148,6 +148,7 @@ class Youku(VideoExtractor): self.password = kwargs['password'] self.utid = fetch_cna() + ...
[youku]sleep 3s to handle server time out of sync
py
diff --git a/ml-agents-envs/mlagents_envs/environment.py b/ml-agents-envs/mlagents_envs/environment.py index <HASH>..<HASH> 100644 --- a/ml-agents-envs/mlagents_envs/environment.py +++ b/ml-agents-envs/mlagents_envs/environment.py @@ -56,16 +56,16 @@ class UnityEnvironment(BaseEnv): DEFAULT_EDITOR_PORT = 5004 ...
Update environment.py __init__ params were over indented
py
diff --git a/dvc/__init__.py b/dvc/__init__.py index <HASH>..<HASH> 100644 --- a/dvc/__init__.py +++ b/dvc/__init__.py @@ -7,7 +7,7 @@ import os import warnings -VERSION_BASE = '0.19.15' +VERSION_BASE = '0.20.0' __version__ = VERSION_BASE PACKAGEPATH = os.path.abspath(os.path.dirname(__file__))
dvc: bump to <I>
py
diff --git a/asammdf/gui/widgets/tabular.py b/asammdf/gui/widgets/tabular.py index <HASH>..<HASH> 100644 --- a/asammdf/gui/widgets/tabular.py +++ b/asammdf/gui/widgets/tabular.py @@ -72,12 +72,15 @@ class Tabular(Ui_TabularDisplay, QtWidgets.QWidget): prefixes = set() for name in self.signals.column...
apply new prefix immediately in the tabular window
py
diff --git a/cli/metadata/package.py b/cli/metadata/package.py index <HASH>..<HASH> 100644 --- a/cli/metadata/package.py +++ b/cli/metadata/package.py @@ -59,7 +59,7 @@ class PackageXmlGenerator(object): continue config = self.metadata_map.get(item) if not config: - ...
Add the subdirectory name to the MissingParserError exception when thrown
py
diff --git a/openid/httpclient.py b/openid/httpclient.py index <HASH>..<HASH> 100644 --- a/openid/httpclient.py +++ b/openid/httpclient.py @@ -33,38 +33,35 @@ def getHTTPClient(): return ParanoidHTTPClient() class SimpleHTTPClient(HTTPClient): + def _fetch(self, req): + f = urllib2.urlopen(req) + ...
[project @ Fix SimpleHTTPClient.post's handling of <I> error responses]
py
diff --git a/steam/client/cdn.py b/steam/client/cdn.py index <HASH>..<HASH> 100644 --- a/steam/client/cdn.py +++ b/steam/client/cdn.py @@ -725,7 +725,9 @@ class CDNClient(object): continue # if we have no license for the depot, no point trying as we won't get depot_key - if de...
fix license check for DLC depots
py
diff --git a/jax/lax/lax.py b/jax/lax/lax.py index <HASH>..<HASH> 100644 --- a/jax/lax/lax.py +++ b/jax/lax/lax.py @@ -2313,13 +2313,14 @@ def _conv_general_dilated_shape_rule( msg = ("conv_general_dilated batch_group_count must divide lhs batch " "dimension size, but {} does not divide {}.") rais...
Fix validation code in lax.conv (#<I>)
py
diff --git a/cas/middleware.py b/cas/middleware.py index <HASH>..<HASH> 100644 --- a/cas/middleware.py +++ b/cas/middleware.py @@ -12,6 +12,10 @@ from django.contrib.auth.views import login, logout from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect, HttpResponseForbidden from d...
Compatibility with Django <I> Middleware
py
diff --git a/ella/photos/management/commands/check_photo_files_consistence.py b/ella/photos/management/commands/check_photo_files_consistence.py index <HASH>..<HASH> 100644 --- a/ella/photos/management/commands/check_photo_files_consistence.py +++ b/ella/photos/management/commands/check_photo_files_consistence.py @@ -2...
"CommandError" imported but unused on ella/photos/management/commands/check_photo_files_consistence
py
diff --git a/nanoplot/NanoPlot.py b/nanoplot/NanoPlot.py index <HASH>..<HASH> 100755 --- a/nanoplot/NanoPlot.py +++ b/nanoplot/NanoPlot.py @@ -111,7 +111,7 @@ def initlogs(time0, args): logging.info('Nanoplot {} started with arguments {}'.format(__version__, args)) logging.info("{} cpu's are available".format(cpu_c...
also logging matplotlib version
py
diff --git a/tests/test_tools.py b/tests/test_tools.py index <HASH>..<HASH> 100644 --- a/tests/test_tools.py +++ b/tests/test_tools.py @@ -1,6 +1,7 @@ from hypothesis import ( example, given, + settings, strategies as st, ) import pytest @@ -20,6 +21,7 @@ from .common.strategies import ( @give...
Fix hypothesis test failure because of caching
py
diff --git a/flatdict.py b/flatdict.py index <HASH>..<HASH> 100644 --- a/flatdict.py +++ b/flatdict.py @@ -2,7 +2,10 @@ key/value pair mapping of nested dictionaries. """ -import collections +try: + from collections.abc import MutableMapping +except ImportError: + from collections import MutableMapping import sy...
Fix deprecation warning for MutableMapping module location MutableMapping will move to collections.abc permanently in Python <I> and is currently a deprecation warning.
py
diff --git a/datasette/utils.py b/datasette/utils.py index <HASH>..<HASH> 100644 --- a/datasette/utils.py +++ b/datasette/utils.py @@ -244,7 +244,7 @@ def temporary_heroku_directory(files, name, metadata, extra_options, branch, tem if metadata_content: open('metadata.json', 'w').write(json.dumps(m...
Deploy to Heroku with Python <I> Heroku deploys are currently showing the following warning: The latest version of Python 3 is python-<I> (you are using python-<I>, which is unsupported). We recommend upgrading by specifying the latest version (python-<I>).
py
diff --git a/mailqueue/management/commands/clear_sent_messages.py b/mailqueue/management/commands/clear_sent_messages.py index <HASH>..<HASH> 100644 --- a/mailqueue/management/commands/clear_sent_messages.py +++ b/mailqueue/management/commands/clear_sent_messages.py @@ -8,7 +8,7 @@ class Command(BaseCommand): de...
Fix TypeError for "offset" argument in "clear_sent_messages" command
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup setup(name='braillegraph', - version='0.2', + version='0.3', description='A library for creating graphs using Unicode braille characters', url='http://githu...
Bump to version <I>. I think I have the package structure right this time. All the library code is in __init__.py, and all the script code is in __main__.py.
py
diff --git a/alot/db/utils.py b/alot/db/utils.py index <HASH>..<HASH> 100644 --- a/alot/db/utils.py +++ b/alot/db/utils.py @@ -132,8 +132,12 @@ def decode_header(header, normalize=False): except UnicodeEncodeError: return value + # some mailers send out incorrectly escaped headers + # and double q...
fix: be more relaxed wrt non-rfc-compliant headers this makes db.utils.decode_header remove superflous double quotes around header values before decoding them
py
diff --git a/payu/runlog.py b/payu/runlog.py index <HASH>..<HASH> 100644 --- a/payu/runlog.py +++ b/payu/runlog.py @@ -46,7 +46,6 @@ class Runlog(object): runlog_config = {} else: assert isinstance(runlog_config, dict) - print(runlog_config) self.enabled = runl...
Removing a print debug
py
diff --git a/pysparkling/fileio/fs/s3.py b/pysparkling/fileio/fs/s3.py index <HASH>..<HASH> 100644 --- a/pysparkling/fileio/fs/s3.py +++ b/pysparkling/fileio/fs/s3.py @@ -77,7 +77,7 @@ class S3(FileSystem): def dump(self, stream): log.debug('Dumping to {0}.'.format(self.key.name)) - self.key.set_...
improve performance for writing to s3
py
diff --git a/afkak/test/test_performance_integration.py b/afkak/test/test_performance_integration.py index <HASH>..<HASH> 100644 --- a/afkak/test/test_performance_integration.py +++ b/afkak/test/test_performance_integration.py @@ -4,9 +4,11 @@ from __future__ import print_function import logging +import os import ...
Skip test_throughput on Travis It is simply too flaky to tolerate anymore.
py
diff --git a/quilt_server/config.py b/quilt_server/config.py index <HASH>..<HASH> 100644 --- a/quilt_server/config.py +++ b/quilt_server/config.py @@ -10,7 +10,7 @@ See `app.config.from_object('...')` in __init__.py. SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_ECHO = False # Turn it on for debugging. -PACKAG...
Change the S3 URL expiration time from <I> to <I> hours
py
diff --git a/bcbio/ngsalign/tophat.py b/bcbio/ngsalign/tophat.py index <HASH>..<HASH> 100644 --- a/bcbio/ngsalign/tophat.py +++ b/bcbio/ngsalign/tophat.py @@ -115,8 +115,7 @@ def tophat_align(fastq_file, pair_file, ref_file, out_base, align_dir, data, options["bowtie1"] = True out_dir = os.path.join(ali...
Fix for Tophat with single-end reads and final BAMfile naming. In single-end mode, fixing the unmapped reads with single-end reads was causing all reads to be discarded. Also the final BAMfile was getting linked to from the align directory and not the subdirectory of the alignment below it.
py
diff --git a/blackjack.py b/blackjack.py index <HASH>..<HASH> 100644 --- a/blackjack.py +++ b/blackjack.py @@ -253,7 +253,7 @@ class BJ(object): root = NULL def __init__(self, iterable=None, comparator=cmp): - self._comparator = cmp + self._comparator = comparator if iterable is not...
Well, that more or less works. Sort of.
py
diff --git a/parsedatetime/__init__.py b/parsedatetime/__init__.py index <HASH>..<HASH> 100644 --- a/parsedatetime/__init__.py +++ b/parsedatetime/__init__.py @@ -142,6 +142,8 @@ def _extract_time(m): def _pop_time_accuracy(m, ctx): + if not m: + return if m.group('hours'): ctx.updateAccura...
Prevented exception be raised if `m` is None
py
diff --git a/owncloud/owncloud.py b/owncloud/owncloud.py index <HASH>..<HASH> 100644 --- a/owncloud/owncloud.py +++ b/owncloud/owncloud.py @@ -220,7 +220,14 @@ class Client(): # TODO: use another path to prevent that the server renders the file list page res = self.__session.get(self.url + 'status.php...
check with CapabilitiesAPI if login was sucessfull
py
diff --git a/drizzlepac/haputils/cell_utils.py b/drizzlepac/haputils/cell_utils.py index <HASH>..<HASH> 100644 --- a/drizzlepac/haputils/cell_utils.py +++ b/drizzlepac/haputils/cell_utils.py @@ -3,8 +3,6 @@ import pdb import shutil from itertools import chain, combinations -from guppy import hpy # For memory profi...
Remove guppy import (#<I>) This is a simple and non-controversial (I think) fix to a broken master - removes an unused import. If that import (`guppy`) is required for HAP, then it should be added to `setup.py`'s list of dependencies.
py
diff --git a/example/ActualUseCases.py b/example/ActualUseCases.py index <HASH>..<HASH> 100644 --- a/example/ActualUseCases.py +++ b/example/ActualUseCases.py @@ -2,7 +2,7 @@ import sys sys.path.insert(0, '../') import unittest -import sinon.sinon as sinon +import sinon from TestClass import ForTestOnly def A_f...
fix CI failed (import)
py
diff --git a/synth.py b/synth.py index <HASH>..<HASH> 100644 --- a/synth.py +++ b/synth.py @@ -5,6 +5,8 @@ import subprocess logging.basicConfig(level=logging.DEBUG) +AUTOSYNTH_MULTIPLE_COMMITS = True + gapic = gcp.GAPICMicrogenerator() common_templates = gcp.CommonTemplates()
chore: enable context-aware commits (#<I>)
py
diff --git a/molecule/commands.py b/molecule/commands.py index <HASH>..<HASH> 100644 --- a/molecule/commands.py +++ b/molecule/commands.py @@ -159,7 +159,10 @@ class BaseCommands(object): try: output = sh.ansible_playbook(playbook, *args, **kwargs) if self.molecule._args['--debug']: -...
broke out environment vars into separate sections
py
diff --git a/zipline/finance/risk.py b/zipline/finance/risk.py index <HASH>..<HASH> 100644 --- a/zipline/finance/risk.py +++ b/zipline/finance/risk.py @@ -41,7 +41,7 @@ import datetime import math import numpy as np import numpy.linalg as la -import zipline.protocol as zp +from zipline.utils.date_utils import epoch_...
added a created date to the risk report.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,5 +25,6 @@ setup( 'Operating System :: OS Independent', 'Programming Language :: Python', 'Environment :: Web Environment', + 'Text Processing :: Linguistic', ], )
[#<I>] Adding a category for PyPI
py
diff --git a/wandb/sdk/internal/tb_watcher.py b/wandb/sdk/internal/tb_watcher.py index <HASH>..<HASH> 100644 --- a/wandb/sdk/internal/tb_watcher.py +++ b/wandb/sdk/internal/tb_watcher.py @@ -367,18 +367,16 @@ class TBEventConsumer: def finish(self) -> None: self._delay = 0 self._shutdown.set() - ...
[WB-<I>] Fix tensorboard integration skipping steps (#<I>) * terminate thread before calling last event * fix * fix finish function
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ import glob import os -from setuptools import setup +from setuptools import setup, find_packages # read in the description from README with open("README.rst") as stream: @@ -41,13 +41,7 @@ setup( author...
use find_packages instead of manually inputting folders
py
diff --git a/angr/state_plugins/callstack.py b/angr/state_plugins/callstack.py index <HASH>..<HASH> 100644 --- a/angr/state_plugins/callstack.py +++ b/angr/state_plugins/callstack.py @@ -312,7 +312,7 @@ class CallStack(SimStatePlugin): i, "None" if frame.call_site_addr is None else "%#...
update callstack.py to utilize current_return_target instead of depracated return_target (#<I>)
py
diff --git a/brothon/utils/plot_utils.py b/brothon/utils/plot_utils.py index <HASH>..<HASH> 100644 --- a/brothon/utils/plot_utils.py +++ b/brothon/utils/plot_utils.py @@ -15,7 +15,9 @@ def plot_defaults(): plt.rcParams['figure.figsize'] = 10.0, 4.0 plt.rcParams.update({'figure.autolayout': True}) ...
putting try around matplotlib keys
py
diff --git a/tensorflow_probability/python/experimental/mcmc/pnuts_test.py b/tensorflow_probability/python/experimental/mcmc/pnuts_test.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/experimental/mcmc/pnuts_test.py +++ b/tensorflow_probability/python/experimental/mcmc/pnuts_test.py @@ -804,9 +804,9 ...
Lower dimension of PNUTS test to make it run faster. PiperOrigin-RevId: <I>
py
diff --git a/src/toil/test/src/toilContextManagerTest.py b/src/toil/test/src/toilContextManagerTest.py index <HASH>..<HASH> 100644 --- a/src/toil/test/src/toilContextManagerTest.py +++ b/src/toil/test/src/toilContextManagerTest.py @@ -71,7 +71,7 @@ class HelloWorld(Job): def childFn(job): with job.fileStore.wri...
Handle file stream binary-ness in ToilContextManagerTest
py
diff --git a/selenium_tid_python/config.py b/selenium_tid_python/config.py index <HASH>..<HASH> 100644 --- a/selenium_tid_python/config.py +++ b/selenium_tid_python/config.py @@ -27,6 +27,7 @@ class Config(object): Create config object with properties file and system properties ''' config = C...
Preserve case reading config file
py
diff --git a/thefuck/shells.py b/thefuck/shells.py index <HASH>..<HASH> 100644 --- a/thefuck/shells.py +++ b/thefuck/shells.py @@ -136,7 +136,7 @@ def _get_shell(): shell = Process(os.getpid()).parent().cmdline()[0] except TypeError: shell = Process(os.getpid()).parent.cmdline[0] - return shel...
refact(shells): use os.path.basename to get the name of the shell
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open('requirements.txt') as f: setup( name='pyicloud', - version='0.5.1', + version='0.5.2', url='https://github.com/picklepete/pyicloud', description=( 'PyiCloud is a module ...
Release <I>; only for updating PyPI record.
py
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py index <HASH>..<HASH> 100644 --- a/python/phonenumbers/__init__.py +++ b/python/phonenumbers/__init__.py @@ -146,7 +146,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency # Version number is taken from the ...
Prep for <I> release
py
diff --git a/simple_history/models.py b/simple_history/models.py index <HASH>..<HASH> 100644 --- a/simple_history/models.py +++ b/simple_history/models.py @@ -558,8 +558,8 @@ class HistoricalObjectDescriptor(object): self.fields_included = fields_included def __get__(self, instance, owner): - val...
Instantiate model with kwargs not args to allow for excluded fields (#<I>)
py
diff --git a/databasetools/json.py b/databasetools/json.py index <HASH>..<HASH> 100644 --- a/databasetools/json.py +++ b/databasetools/json.py @@ -20,3 +20,12 @@ class JSON: og_data = self.read() og_data[key] = data self.write(og_data) + + def append(self, data, key=None): + """Appe...
ADD append method to JSON class
py
diff --git a/hpcbench/export/es.py b/hpcbench/export/es.py index <HASH>..<HASH> 100644 --- a/hpcbench/export/es.py +++ b/hpcbench/export/es.py @@ -206,18 +206,16 @@ class ESExporter(object): return mapping def _get_runs(self): - for attrs, metrics in get_metrics(self.campaign, self.report): - ...
Elasticsearch export: flatten documents No more nested documents per metrics. A document is now one of the metric results.
py
diff --git a/cmsplugin_filer_file/models.py b/cmsplugin_filer_file/models.py index <HASH>..<HASH> 100644 --- a/cmsplugin_filer_file/models.py +++ b/cmsplugin_filer_file/models.py @@ -30,11 +30,7 @@ class FilerFile(CMSPlugin): return self.file.file.storage.exists(self.file.path) def get_file_name(self): ...
Reverted change to get_file_name; that's already covered by a different changeset
py
diff --git a/canmatrix/exportxlsx.py b/canmatrix/exportxlsx.py index <HASH>..<HASH> 100644 --- a/canmatrix/exportxlsx.py +++ b/canmatrix/exportxlsx.py @@ -309,7 +309,7 @@ def exportXlsx(db, filename, **options): #sort signals: sigHash ={} for sig in frame._signals: - sigHash["%02d"...
fixed typo may fix #<I>
py
diff --git a/pydux/combine_reducers.py b/pydux/combine_reducers.py index <HASH>..<HASH> 100644 --- a/pydux/combine_reducers.py +++ b/pydux/combine_reducers.py @@ -1,5 +1,6 @@ from __future__ import absolute_import +import six import random from string import ascii_letters @@ -14,7 +15,7 @@ def get_undefined_stat...
use six.iteritems for python2/3 compatibility
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup setup( name = 'pyopening_hours', - version = '0.1', + version = '0.1.1', description = 'Python module providing access to the opening_hours.js lib...
Released <I> to test pip install.
py
diff --git a/safe_qgis/test/test_translations.py b/safe_qgis/test/test_translations.py index <HASH>..<HASH> 100644 --- a/safe_qgis/test/test_translations.py +++ b/safe_qgis/test/test_translations.py @@ -108,7 +108,7 @@ class SafeTranslationsTest(unittest.TestCase): line_count = 0 # exception_words is ...
Fixed tests on test directory. All pass on mint.
py
diff --git a/sphinxarg/markdown.py b/sphinxarg/markdown.py index <HASH>..<HASH> 100644 --- a/sphinxarg/markdown.py +++ b/sphinxarg/markdown.py @@ -1,5 +1,11 @@ -from CommonMark import Parser # >= 0.5.6 -from CommonMark.node import Node +try: + from commonmark import Parser +except ImportError: + from CommonMark ...
Try commonmark, fall back to CommonMark.
py
diff --git a/modelx/__init__.py b/modelx/__init__.py index <HASH>..<HASH> 100644 --- a/modelx/__init__.py +++ b/modelx/__init__.py @@ -20,7 +20,7 @@ Attributes: """ -VERSION = (0, 9, 0, "dev") +VERSION = (0, 9, 0) __version__ = ".".join([str(x) for x in VERSION]) from modelx.core.api import * # must come after ...
DIST: Release <I>
py
diff --git a/airflow/www/views.py b/airflow/www/views.py index <HASH>..<HASH> 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -41,7 +41,7 @@ from flask_appbuilder import BaseView, ModelView, expose, has_access, permission from flask_appbuilder.actions import action from flask_appbuilder.models.sqla.fi...
Use pfromat instead of str to render arguments in WebUI (#<I>)
py
diff --git a/rootpy/io/file.py b/rootpy/io/file.py index <HASH>..<HASH> 100644 --- a/rootpy/io/file.py +++ b/rootpy/io/file.py @@ -135,7 +135,6 @@ class Directory(_DirectoryBase, ROOT.TDirectoryFile): self._path = name self._parent = None - def __str__(self): return "%s('%s')" % (sel...
fix crash after failed TFile open
py
diff --git a/src/SslClient.py b/src/SslClient.py index <HASH>..<HASH> 100644 --- a/src/SslClient.py +++ b/src/SslClient.py @@ -6,7 +6,7 @@ from X509Certificate import X509Certificate DEFAULT_BUFFER_SIZE = 4096 -class SslClient: +class SslClient(object): """ High level API implementing an SSL client. ...
make SslClient an object
py
diff --git a/mediasync/__init__.py b/mediasync/__init__.py index <HASH>..<HASH> 100644 --- a/mediasync/__init__.py +++ b/mediasync/__init__.py @@ -3,7 +3,6 @@ import hashlib import mimetypes import os import cStringIO -from django.conf import settings JS_MIMETYPES = ( "application/javascript", @@ -62,6 +61,8...
move settings import into methods in which it is used
py
diff --git a/src/scs_core/position/gps_datum.py b/src/scs_core/position/gps_datum.py index <HASH>..<HASH> 100644 --- a/src/scs_core/position/gps_datum.py +++ b/src/scs_core/position/gps_datum.py @@ -56,7 +56,7 @@ class GPSDatum(JSONReport): @classmethod def null_datum(cls): - return GPSDatum(Position...
GPSDatum has null quality when receiver not available
py
diff --git a/kubernetes/models/unversioned/BaseUrls.py b/kubernetes/models/unversioned/BaseUrls.py index <HASH>..<HASH> 100644 --- a/kubernetes/models/unversioned/BaseUrls.py +++ b/kubernetes/models/unversioned/BaseUrls.py @@ -24,7 +24,7 @@ class BaseUrls(object): if api is None: api = self.defaul...
BaseUrls: fixes wrongful default version assignment for apps (was to api)
py
diff --git a/tensorflow_datasets/text/imdb.py b/tensorflow_datasets/text/imdb.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/text/imdb.py +++ b/tensorflow_datasets/text/imdb.py @@ -58,9 +58,9 @@ class IMDBReviewsConfig(tfds.core.BuilderConfig): **kwargs: keyword arguments forwarded to super. """ ...
Add release notes for imdb dataset
py
diff --git a/udata/tasks.py b/udata/tasks.py index <HASH>..<HASH> 100644 --- a/udata/tasks.py +++ b/udata/tasks.py @@ -92,8 +92,7 @@ def init_app(app): from udata.models import db with app.app_context(): - default_url = 'mongodb://{host}:{port}'.format( - host=db.connection.host, port=db.c...
fix for workers not getting right connection string
py
diff --git a/tldap/options.py b/tldap/options.py index <HASH>..<HASH> 100644 --- a/tldap/options.py +++ b/tldap/options.py @@ -19,10 +19,9 @@ class Options(object): def __init__(self, name, meta): self.meta = meta self.fields = [] - self.object_classes = set(getattr(meta, 'object_classes',...
Update default for object_classes.
py
diff --git a/openid/consumer/consumer.py b/openid/consumer/consumer.py index <HASH>..<HASH> 100644 --- a/openid/consumer/consumer.py +++ b/openid/consumer/consumer.py @@ -734,8 +734,6 @@ class GenericConsumer(object): self._idResCheckSignature(message, endpoint.server_url) - response_identity = mess...
[project @ Remove orphaned assignment statement]
py
diff --git a/masonite/providers/AppProvider.py b/masonite/providers/AppProvider.py index <HASH>..<HASH> 100644 --- a/masonite/providers/AppProvider.py +++ b/masonite/providers/AppProvider.py @@ -75,7 +75,7 @@ class AppProvider(ServiceProvider): Autoload(self.app).load(directories) def _set_application_d...
E<I> comparison to False should be 'if cond is False:' or 'if not cond:'
py
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py index <HASH>..<HASH> 100644 --- a/salt/utils/__init__.py +++ b/salt/utils/__init__.py @@ -743,7 +743,7 @@ def fopen(*args, **kwargs): return fhandle -def traverse_dict(data, target, delim=':'): +def traverse_dict(data, target, default, delim=':'): ...
Change traverse_dict to handle wider cases
py
diff --git a/library/exportxls.py b/library/exportxls.py index <HASH>..<HASH> 100644 --- a/library/exportxls.py +++ b/library/exportxls.py @@ -261,7 +261,7 @@ def exportXls(db, filename): #sort signals: sigHash ={} for sig in frame._signals: - sigHash[str(sig._startbit) + sig._name] = sig + sigHash["%0...
signal sorting issue (now 2 digit-bit-positions are sorted correct)
py
diff --git a/Python/basic_math.py b/Python/basic_math.py index <HASH>..<HASH> 100644 --- a/Python/basic_math.py +++ b/Python/basic_math.py @@ -287,7 +287,7 @@ def average(numbers): Requires: The math module """ - return float(sum(numbers) / len(numbers)) + return float(sum(numbers)) / len(numbe...
Fixed a bug with the average function in basic_math.py.
py
diff --git a/floyd/cli/utils.py b/floyd/cli/utils.py index <HASH>..<HASH> 100644 --- a/floyd/cli/utils.py +++ b/floyd/cli/utils.py @@ -113,13 +113,12 @@ def normalize_data_name(raw_name, default_username='', default_dataset_name='', def normalize_job_name(raw_job_name, default_username='', default_project_name='', ...
fix data clone command (#<I>)
py
diff --git a/scripts/experiments/run_srl.py b/scripts/experiments/run_srl.py index <HASH>..<HASH> 100755 --- a/scripts/experiments/run_srl.py +++ b/scripts/experiments/run_srl.py @@ -660,6 +660,9 @@ class ParamDefinitions(): base_work_mem_megs = 5*1024 elif exp.get("includeSrl") == Fal...
Giving more memory to unpruned 2nd-order models
py
diff --git a/openpnm/models/geometry/__init__.py b/openpnm/models/geometry/__init__.py index <HASH>..<HASH> 100644 --- a/openpnm/models/geometry/__init__.py +++ b/openpnm/models/geometry/__init__.py @@ -13,8 +13,8 @@ from . import pore_seed from . import pore_volume from . import pore_surface_area from . import pore...
Update init file in models.geometry
py
diff --git a/tests/transports/test_base.py b/tests/transports/test_base.py index <HASH>..<HASH> 100644 --- a/tests/transports/test_base.py +++ b/tests/transports/test_base.py @@ -127,6 +127,7 @@ def test_flush_time(mock_send, caplog, elasticapm_client): assert mock_send.call_count == 0 +@pytest.mark.flaky(reru...
Mark another windows test as flaky (#<I>)
py
diff --git a/src/sos/targets.py b/src/sos/targets.py index <HASH>..<HASH> 100644 --- a/src/sos/targets.py +++ b/src/sos/targets.py @@ -1169,8 +1169,8 @@ class sos_targets(BaseTarget, Sequence, os.PathLike): f'Unknown attribute {key} from sos_targets of size {len(self)}.') def target_name(self): ...
Save source info in sos_targets target_name
py
diff --git a/ceam_tests/util.py b/ceam_tests/util.py index <HASH>..<HASH> 100644 --- a/ceam_tests/util.py +++ b/ceam_tests/util.py @@ -26,6 +26,7 @@ def setup_simulation(components, population_size = 100, start=datetime(1990, 1, return simulation def pump_simulation(simulation, time_step_days=30.5, duration=No...
updated the duration code and made age variable a float
py
diff --git a/angr/calling_conventions.py b/angr/calling_conventions.py index <HASH>..<HASH> 100644 --- a/angr/calling_conventions.py +++ b/angr/calling_conventions.py @@ -1061,6 +1061,7 @@ class SimCCMicrosoftAMD64(SimCC): FP_RETURN_VAL = SimRegArg('xmm0', 32) RETURN_ADDR = SimStackArg(0, 8) ARCH = archi...
fixed stack alignment for the windows calling convention
py
diff --git a/xone/files.py b/xone/files.py index <HASH>..<HASH> 100644 --- a/xone/files.py +++ b/xone/files.py @@ -239,6 +239,6 @@ def file_modified_time(file_name) -> pd.Timestamp: Examples: >>> target_file = f'{abspath(__file__)}/tests/files/test_2.json' >>> file_modified_time(target_file).date...
sample updated for no apparent reason ...
py
diff --git a/tests/integration/modules/config.py b/tests/integration/modules/config.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/config.py +++ b/tests/integration/modules/config.py @@ -32,7 +32,7 @@ class ConfigTest(integration.ModuleCase): # interpereter is breaking it for remote calls ...
Disable failing config.manage_mode test, we will need to clean this
py
diff --git a/gwpy/io/tests/test_datafind.py b/gwpy/io/tests/test_datafind.py index <HASH>..<HASH> 100644 --- a/gwpy/io/tests/test_datafind.py +++ b/gwpy/io/tests/test_datafind.py @@ -223,6 +223,8 @@ class TestFflConnection(object): @mock.patch("gwpy.io.datafind.connect", return_value="connection") def test_with_conne...
gwpy.io: work around bug in mock on py<I>
py
diff --git a/slumber/__init__.py b/slumber/__init__.py index <HASH>..<HASH> 100644 --- a/slumber/__init__.py +++ b/slumber/__init__.py @@ -178,7 +178,12 @@ class Resource(ResourceAttributesMixin, object): s = self._store["serializer"] files = self._extract_files(data) - resp = self._request("...
Forgot to give PUT the same treatment as POST
py
diff --git a/pybitcoin/services/chain_com.py b/pybitcoin/services/chain_com.py index <HASH>..<HASH> 100644 --- a/pybitcoin/services/chain_com.py +++ b/pybitcoin/services/chain_com.py @@ -66,10 +66,10 @@ def broadcast_transaction(hex_tx, blockchain_client): if not auth or len(auth) != 2: raise Exception('C...
Use /bitcon/transactions/send and signed_tx when communicating with chain.com.
py
diff --git a/testing/python/collect.py b/testing/python/collect.py index <HASH>..<HASH> 100644 --- a/testing/python/collect.py +++ b/testing/python/collect.py @@ -841,7 +841,7 @@ class TestConftestCustomization(object): def pytest_pycollect_makeitem(): outcome = yield if o...
Fix call to outcome.get_result now that outcome.result is deprecated
py