diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/xero/manager.py b/xero/manager.py index <HASH>..<HASH> 100644 --- a/xero/manager.py +++ b/xero/manager.py @@ -199,16 +199,20 @@ class Manager(object): uri = '/'.join([XERO_API_URL, self.name, id]) return uri, {}, 'get', None, headers - def save_or_put(self, data, method='post', heade...
Turned summarizeErrors into an option, false by default
py
diff --git a/tests/test_checker.py b/tests/test_checker.py index <HASH>..<HASH> 100644 --- a/tests/test_checker.py +++ b/tests/test_checker.py @@ -100,12 +100,12 @@ class TestFileTermChecker(unittest.TestCase): self.assertEqual(terms, set(), "Returns empty set if file is empty") with open(self.file....
if open file in binary mode, write in with binary string
py
diff --git a/tests/unit/runners/test_vault.py b/tests/unit/runners/test_vault.py index <HASH>..<HASH> 100644 --- a/tests/unit/runners/test_vault.py +++ b/tests/unit/runners/test_vault.py @@ -110,7 +110,6 @@ class VaultTest(TestCase, LoaderModuleMockMixin): log.debug('Difference:\n\t{0}'.format(diff...
Remove extra blank line for lint
py
diff --git a/src/python/pants/option/global_options.py b/src/python/pants/option/global_options.py index <HASH>..<HASH> 100644 --- a/src/python/pants/option/global_options.py +++ b/src/python/pants/option/global_options.py @@ -1643,7 +1643,10 @@ class ProcessCleanupOption: def maybe_warn_python_macros_deprecation(...
[internal] Only warn about `--use-deprecated-python-macros` when Python used (#<I>) It's annoying and noisy to warn about this option in JVM and Go repositories. [ci skip-rust] [ci skip-build-wheels]
py
diff --git a/tmuxp/cli.py b/tmuxp/cli.py index <HASH>..<HASH> 100644 --- a/tmuxp/cli.py +++ b/tmuxp/cli.py @@ -42,11 +42,15 @@ def get_cwd(): return os.getcwd() -def tmuxp_echo(message=None, log_level='INFO', **click_kwargs): +def tmuxp_echo(message=None, log_level='INFO', style_log=False, **click_kwargs): ...
adding a style switch to the log
py
diff --git a/confidence/io.py b/confidence/io.py index <HASH>..<HASH> 100644 --- a/confidence/io.py +++ b/confidence/io.py @@ -89,6 +89,9 @@ def read_envvars(name: str, extension: typing.Optional[str] = None) -> Configura # unescape double underscores back to a single one return re.sub(r'__', '_', nam...
Log number and prefix of environment variables being used
py
diff --git a/salt/modules/win_ip.py b/salt/modules/win_ip.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_ip.py +++ b/salt/modules/win_ip.py @@ -17,7 +17,7 @@ from salt.exceptions import ( CommandExecutionError, SaltInvocationError ) -from six.moves import range +from salt.utils.six.moves import range ...
Replaced module six in file /salt/modules/win_ip.py
py
diff --git a/gearbox/main.py b/gearbox/main.py index <HASH>..<HASH> 100644 --- a/gearbox/main.py +++ b/gearbox/main.py @@ -2,7 +2,12 @@ from __future__ import print_function import argparse import inspect -import sys, os, pkg_resources, logging, warnings +import sys +import os +import pkg_resources +import logging ...
PEP 8 warning due to multiple imports in one line fixed
py
diff --git a/epc/server.py b/epc/server.py index <HASH>..<HASH> 100644 --- a/epc/server.py +++ b/epc/server.py @@ -56,7 +56,7 @@ class ReturnErrorCallerUnknown(CallerUnknown, ReturnError): class EPCClosed(Exception): """ - Trying to send to/receive from a closed socket. + Trying to send to a closed socket...
Fix _rfile_read_safely As error from _rfile_read_safely is not caught by _handle, use StopIteration as before.
py
diff --git a/respite/view.py b/respite/view.py index <HASH>..<HASH> 100644 --- a/respite/view.py +++ b/respite/view.py @@ -25,6 +25,13 @@ class View(object): DELETE -- A string describing the view function to call on HTTP DELETE. """ + if not GET and not POST and not PUT and not DELET...
Respond with <I> where appropriate
py
diff --git a/lcdproc/server.py b/lcdproc/server.py index <HASH>..<HASH> 100644 --- a/lcdproc/server.py +++ b/lcdproc/server.py @@ -137,3 +137,15 @@ class Server(object): return None else: return response + + def get_server_info(self): + """ + Returns information of th...
add a method to get information about the server and the connected LCD
py
diff --git a/isort/isort.py b/isort/isort.py index <HASH>..<HASH> 100644 --- a/isort/isort.py +++ b/isort/isort.py @@ -278,10 +278,9 @@ class SortImports(object): stdlib_lib_prefix = os.path.normcase(sysconfig.get_paths()['stdlib']) for prefix in paths: - module_path = "/".join((prefix, m...
added a test for imports created at load time, such as six.moves. simplified test of import beinga module or package.
py
diff --git a/wooey/__init__.py b/wooey/__init__.py index <HASH>..<HASH> 100644 --- a/wooey/__init__.py +++ b/wooey/__init__.py @@ -1 +1 @@ -__version__ = '0.0.2' \ No newline at end of file +__version__ = '0.0.3' \ No newline at end of file
Fix refactoring of displayoutput objects in views Fixes bug #4
py
diff --git a/openquake/calculators/hazard/classical/core.py b/openquake/calculators/hazard/classical/core.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/hazard/classical/core.py +++ b/openquake/calculators/hazard/classical/core.py @@ -274,7 +274,8 @@ class ClassicalHazardCalculator(haz_general.BaseHazardCal...
calcs/hazard/classical/core: Wrapped a line which was too long.
py
diff --git a/discord/client.py b/discord/client.py index <HASH>..<HASH> 100644 --- a/discord/client.py +++ b/discord/client.py @@ -791,7 +791,7 @@ class Client: log_fmt = 'In {}, {}'.format(name, tmp) log.debug(log_fmt) if resp.status == 429: - retry = resp.headers['Retry-After'] /...
Cast Retry-After header into a float.
py
diff --git a/cumulusci/cli/tests/test_run_task.py b/cumulusci/cli/tests/test_run_task.py index <HASH>..<HASH> 100644 --- a/cumulusci/cli/tests/test_run_task.py +++ b/cumulusci/cli/tests/test_run_task.py @@ -104,7 +104,7 @@ def test_get_default_command_options(): def test_collect_task_options(): - new_options = ...
test that options with no value are removed
py
diff --git a/netpyne/conversion/neuromlFormat.py b/netpyne/conversion/neuromlFormat.py index <HASH>..<HASH> 100644 --- a/netpyne/conversion/neuromlFormat.py +++ b/netpyne/conversion/neuromlFormat.py @@ -33,7 +33,7 @@ try: except ImportError: from neuron import h pc = h.ParallelContext() # MPI: Initialize the...
sim.cfg doesn't exist yet so can't check verbose; just turn the thing off
py
diff --git a/librosa/core/pitch.py b/librosa/core/pitch.py index <HASH>..<HASH> 100644 --- a/librosa/core/pitch.py +++ b/librosa/core/pitch.py @@ -154,7 +154,7 @@ def pitch_tuning(frequencies, resolution=0.01, bins_per_octave=12): # from the next tone up. residual[residual >= 0.5] -= 1.0 - bins = np.lins...
better Implementation of Method "pitch_tuning"
py
diff --git a/gremlin-python/src/main/jython/setup.py b/gremlin-python/src/main/jython/setup.py index <HASH>..<HASH> 100644 --- a/gremlin-python/src/main/jython/setup.py +++ b/gremlin-python/src/main/jython/setup.py @@ -25,7 +25,7 @@ from setuptools import setup, Command root = os.path.dirname(os.path.abspath(__file__)...
Moved __version__.py to gremlin_python directory __version__.py is a generated file that is not in source control. it only appears at the time of a build and is ignored by git. by moving it to gremlin_python directory the __version__ will appear in the source distribution. CTR
py
diff --git a/drizzlepac/outputimage.py b/drizzlepac/outputimage.py index <HASH>..<HASH> 100644 --- a/drizzlepac/outputimage.py +++ b/drizzlepac/outputimage.py @@ -721,6 +721,7 @@ def getTemplates(fnames, blend=True, rules_file=None): return newhdrs, newtab + def addWCSKeywords(wcs, hdr, blot=False, single=Fal...
Pass along default WCSNAME (#<I>) * Pass along default WCSNAME * Add explanatory comments
py
diff --git a/deimos/containerizer/__init__.py b/deimos/containerizer/__init__.py index <HASH>..<HASH> 100644 --- a/deimos/containerizer/__init__.py +++ b/deimos/containerizer/__init__.py @@ -2,6 +2,7 @@ import inspect import logging import os import re +import subprocess try: # Prefer system inst...
Add missing subprocess module. An exception is checked against an exception in the subprocess module in the place_uris module.
py
diff --git a/foundations/tests/tests.py b/foundations/tests/tests.py index <HASH>..<HASH> 100644 --- a/foundations/tests/tests.py +++ b/foundations/tests/tests.py @@ -38,18 +38,18 @@ __all__ = ["testsSuite"] #**************************************************************************************************************...
Ensure "sys.path" is properly set.
py
diff --git a/photutils/tests/test_aperture_photometry.py b/photutils/tests/test_aperture_photometry.py index <HASH>..<HASH> 100644 --- a/photutils/tests/test_aperture_photometry.py +++ b/photutils/tests/test_aperture_photometry.py @@ -5,14 +5,13 @@ # algorithms in aperture_photometry, not in the wrappers. from __futu...
Importing pytest from astropy to be consistent with the rest of the test files [skip ci]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup( install_requires=[ 'appdirs==1.4.0', 'docopt==0.6.2', - 'prompt-toolkit==0.57', + 'prompt-toolkit==0.60', 'python-slugify==1.2.0', ], packages=['wit...
Upgrade dependency prompt-toolkit to ==<I>
py
diff --git a/gnsq/nsqd.py b/gnsq/nsqd.py index <HASH>..<HASH> 100644 --- a/gnsq/nsqd.py +++ b/gnsq/nsqd.py @@ -205,7 +205,10 @@ class NsqdTCPClient(object): def connect(self): """Initialize connection to the nsqd.""" - if self.state not in (INIT, DISCONNECTED): + if self.state == DISCONNEC...
Raise error in connecting to closed nsqd client
py
diff --git a/uflash.py b/uflash.py index <HASH>..<HASH> 100755 --- a/uflash.py +++ b/uflash.py @@ -303,9 +303,9 @@ def flash(path_to_python=None, paths_to_microbits=None, raise RuntimeError('Will only run on Python 2.7, or 3.3 and later.') # Grab the Python script (if needed). python_hex = '' - (s...
Add conditional before munging file path Enclose file path processing in a conditional so we don't attempt to munge a non-existent path.
py
diff --git a/_pytest/pytester.py b/_pytest/pytester.py index <HASH>..<HASH> 100644 --- a/_pytest/pytester.py +++ b/_pytest/pytester.py @@ -1085,10 +1085,10 @@ class LineMatcher: self._match_lines_random(lines2, fnmatch) def re_match_lines_random(self, lines2): - """Check lines exist in the output...
Fix docstrings in pytester
py
diff --git a/linguist/cache.py b/linguist/cache.py index <HASH>..<HASH> 100644 --- a/linguist/cache.py +++ b/linguist/cache.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +import copy + from django.utils.encoding import python_2_unicode_compatible @@ -39,6 +41,15 @@ class CachedTranslation(object): return di...
CachedTranslation: add lookup_get() method.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -62,6 +62,6 @@ setup( 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: Implementati...
bugfix: setuptools reference to pypy
py
diff --git a/gitlab_tests/test_v91/test_projects.py b/gitlab_tests/test_v91/test_projects.py index <HASH>..<HASH> 100644 --- a/gitlab_tests/test_v91/test_projects.py +++ b/gitlab_tests/test_v91/test_projects.py @@ -1,6 +1,6 @@ import responses +from requests.exceptions import HTTPError -from gitlab.exceptions import...
tests: Update Project cases for new behaviour See also: #<I>
py
diff --git a/Lib/fontbakery/checkrunner.py b/Lib/fontbakery/checkrunner.py index <HASH>..<HASH> 100644 --- a/Lib/fontbakery/checkrunner.py +++ b/Lib/fontbakery/checkrunner.py @@ -39,6 +39,7 @@ from fontbakery.errors import ( NamespaceError, ValueValidationError, ) +from fontbakery.section import Section fro...
Reimport section for backwards compatibility
py
diff --git a/udiskie/cli.py b/udiskie/cli.py index <HASH>..<HASH> 100644 --- a/udiskie/cli.py +++ b/udiskie/cli.py @@ -251,7 +251,10 @@ class _EntryPoint(object): """Start asynchronous operations.""" try: self.udisks = yield get_backend(self.options['udisks_version']) - yield s...
Set non-zero exitcode in case of error Resolves #<I>
py
diff --git a/datasette/app.py b/datasette/app.py index <HASH>..<HASH> 100644 --- a/datasette/app.py +++ b/datasette/app.py @@ -1308,8 +1308,8 @@ class Datasette: modpath = '/-/static-plugins/{}/'.format(plugin_module.__name__) dirpath = pkg_resources.resource_filename(plugin_mo...
Fix for plugins in Python <I> (#<I>) ModuleNotFoundError is not a thing in Python <I>, so catch KeyError/ImportError instead.
py
diff --git a/src/arcrest/manageorg/administration.py b/src/arcrest/manageorg/administration.py index <HASH>..<HASH> 100644 --- a/src/arcrest/manageorg/administration.py +++ b/src/arcrest/manageorg/administration.py @@ -1,10 +1,9 @@ -from ..security.security import AGOLTokenSecurityHandler, PortalTokenSecurityHandler, O...
Updated import of references in manageorg/administration.py
py
diff --git a/ndb/model.py b/ndb/model.py index <HASH>..<HASH> 100644 --- a/ndb/model.py +++ b/ndb/model.py @@ -2182,7 +2182,7 @@ class Model(object): @utils.positional(1) def __init__(self, key=None, id=None, parent=None, **kwds): - """Creates a new instance of this model (a.k.a. as an entity). + """Creat...
Fix typo in docstring. Fixes issue <I>.
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='django-memcache-status', - version='0.9', + version='1.0', description='A django application that displays the load and some other statis...
No issues, let's bump that up to <I>.
py
diff --git a/blimpy/file_wrapper.py b/blimpy/file_wrapper.py index <HASH>..<HASH> 100644 --- a/blimpy/file_wrapper.py +++ b/blimpy/file_wrapper.py @@ -516,7 +516,7 @@ class FilReader(Reader): raise IOError("Need a file to open, please give me one!") def _setup_n_ints_in_file(self): - + """ C...
Added a docstring and propagate return_idxs in read_header
py
diff --git a/andes/core/discrete.py b/andes/core/discrete.py index <HASH>..<HASH> 100644 --- a/andes/core/discrete.py +++ b/andes/core/discrete.py @@ -595,19 +595,22 @@ class Delay(Discrete): self.v[:] = self._v_store[:, 0] -class Average(Discrete): +class Average(Delay): """ Compute the average ...
Added in discrete.py Average and Derivative
py
diff --git a/func_timeout/StoppableThread.py b/func_timeout/StoppableThread.py index <HASH>..<HASH> 100644 --- a/func_timeout/StoppableThread.py +++ b/func_timeout/StoppableThread.py @@ -29,6 +29,16 @@ class StoppableThread(threading.Thread): joinThread.start() joinThread._stderr = self._stderr + ...
Add 'stop' method (rather than _stopThread) to StoppableThread
py
diff --git a/ck/repo/module/web/module.py b/ck/repo/module/web/module.py index <HASH>..<HASH> 100644 --- a/ck/repo/module/web/module.py +++ b/ck/repo/module/web/module.py @@ -632,7 +632,7 @@ def start(i): """ - global s_host, s_port + global s_host, s_port, use_wfe_url ck.out('For now we can only ...
small bug fix in URL (web service)
py
diff --git a/superset/connectors/sqla/models.py b/superset/connectors/sqla/models.py index <HASH>..<HASH> 100644 --- a/superset/connectors/sqla/models.py +++ b/superset/connectors/sqla/models.py @@ -517,9 +517,6 @@ class SqlaTable(Model, BaseDatasource): for col, ascending in orderby: direction ...
[cleanup] removing print() artefacts (#<I>)
py
diff --git a/spyderlib/utils/external/path.py b/spyderlib/utils/external/path.py index <HASH>..<HASH> 100644 --- a/spyderlib/utils/external/path.py +++ b/spyderlib/utils/external/path.py @@ -29,7 +29,7 @@ Date: 9 Mar 2007 from __future__ import generators -import sys, warnings, os, fnmatch, glob, shutil, codecs...
Patch external path library to avoid a crash with a user HOME directory with non-ascii characters Update Issue <I> Status: Started -. Path was assuming that if the filesystem supports unicode, then directories were in unicode too. But in Windows they are encoded on the system enconding (cp<I> for Western European lan...
py
diff --git a/tests/test_js_bridge.py b/tests/test_js_bridge.py index <HASH>..<HASH> 100755 --- a/tests/test_js_bridge.py +++ b/tests/test_js_bridge.py @@ -20,7 +20,7 @@ window.pywebview.api.{0}().then(function(response) {{ class Api: - def get_number(self, params): + def get_int(self, params): retur...
Add float test to test_js_bridge
py
diff --git a/python/orca/src/bigdl/orca/torch/torch_model.py b/python/orca/src/bigdl/orca/torch/torch_model.py index <HASH>..<HASH> 100644 --- a/python/orca/src/bigdl/orca/torch/torch_model.py +++ b/python/orca/src/bigdl/orca/torch/torch_model.py @@ -21,7 +21,6 @@ import torch from bigdl.nn.layer import Layer from bi...
Delete TorchNet and TorchCriterion (#<I>) * delete scala * clean python
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,6 @@ setup(name='CleanerVersion', license='Apache License 2.0', packages=find_packages(exclude=['cleanerversion.settings.*']), url='https://github.com/swisscom/cleanerversion', - install_req...
Removed django-dependency from setup.py to remove testing interference
py
diff --git a/adafruit_seesaw/seesaw.py b/adafruit_seesaw/seesaw.py index <HASH>..<HASH> 100644 --- a/adafruit_seesaw/seesaw.py +++ b/adafruit_seesaw/seesaw.py @@ -160,7 +160,6 @@ class Seesaw: .format(chip_id, _HW_ID_CODE)) pid = self.get_version() >> 16 - # pylint: dis...
remove pylint directive not understood by <I>
py
diff --git a/xprocess.py b/xprocess.py index <HASH>..<HASH> 100644 --- a/xprocess.py +++ b/xprocess.py @@ -11,6 +11,11 @@ from py import std import psutil +# make map appear from the future +if sys.version_info < (3,): + map = itertools.imap + + class XProcessInfo: def __init__(self, path, name): ...
Decouple line logging from line filtering
py
diff --git a/gcloud/datastore/test_key.py b/gcloud/datastore/test_key.py index <HASH>..<HASH> 100644 --- a/gcloud/datastore/test_key.py +++ b/gcloud/datastore/test_key.py @@ -289,7 +289,7 @@ class TestKey(unittest2.TestCase): _NAMESPACE = 'NAMESPACE' dataset = Dataset(_DATASET) key = self._ma...
Appease pylint E<I>.
py
diff --git a/scripts/prepare-release-pr.py b/scripts/prepare-release-pr.py index <HASH>..<HASH> 100644 --- a/scripts/prepare-release-pr.py +++ b/scripts/prepare-release-pr.py @@ -66,22 +66,16 @@ def prepare_release_pr( run( ["git", "config", "user.name", "pytest bot"], - text=True, check...
scripts: Don't capture output in prepare-release-pr.py (#<I>) We don't need to access the output in the script, and if we capture it, we don't get any output on CI, so no way to see why a release failed.
py
diff --git a/flaskext/sqlalchemy.py b/flaskext/sqlalchemy.py index <HASH>..<HASH> 100644 --- a/flaskext/sqlalchemy.py +++ b/flaskext/sqlalchemy.py @@ -190,7 +190,12 @@ class _SignallingSession(Session): self._model_changes = {} def get_bind(self, mapper, clause=None): - bind_key = mapper and mapp...
Wrap the retrieval of the bind_key in a exception since the mapper.mapped_table is not always an table, but might be a Join instance.
py
diff --git a/slave/buildslave/test/unit/test_slave_commands_utils.py b/slave/buildslave/test/unit/test_slave_commands_utils.py index <HASH>..<HASH> 100644 --- a/slave/buildslave/test/unit/test_slave_commands_utils.py +++ b/slave/buildslave/test/unit/test_slave_commands_utils.py @@ -95,10 +95,10 @@ class RmdirRecursive(...
fix typo (Skiptest vs SkipTest)
py
diff --git a/test/test.py b/test/test.py index <HASH>..<HASH> 100755 --- a/test/test.py +++ b/test/test.py @@ -14,6 +14,9 @@ import re import shutil import subprocess +from canmatrix.log import setup_logger, set_log_level +logger = setup_logger('root') +set_log_level(logger, -1) export_types = [] import_types =...
set logging to silent in test.py
py
diff --git a/lenses/lens.py b/lenses/lens.py index <HASH>..<HASH> 100644 --- a/lenses/lens.py +++ b/lenses/lens.py @@ -55,9 +55,11 @@ class Lens: The `other` lens is used to refine the `self` lens. The following two pieces of code should be equivalent: - self.compose(other).get(state) + ...
Reformat `lenses.Lens.compose` docstring The indentation in the code sample keeps getting reformatted by yapf. Hopefully this will cause less issues.
py
diff --git a/scriptabit/configuration.py b/scriptabit/configuration.py index <HASH>..<HASH> 100644 --- a/scriptabit/configuration.py +++ b/scriptabit/configuration.py @@ -165,7 +165,7 @@ def get_configuration(basename='scriptabit.cfg', parents=None): required=False, default='habitica', help='...
updating help messages about plugin chaining not being supported
py
diff --git a/dvc/version.py b/dvc/version.py index <HASH>..<HASH> 100644 --- a/dvc/version.py +++ b/dvc/version.py @@ -6,7 +6,7 @@ import os import subprocess -_BASE_VERSION = "1.7.4" +_BASE_VERSION = "1.7.5" def _generate_version(base_version):
dvc: bump to <I>
py
diff --git a/salt/modules/drac.py b/salt/modules/drac.py index <HASH>..<HASH> 100644 --- a/salt/modules/drac.py +++ b/salt/modules/drac.py @@ -283,7 +283,7 @@ def create_user(username, password, permissions, users=None): log.warn('\'{0}\' already exists'.format(username)) return False - for i in ...
List call not needed. Changing it back to what it was
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ with open('README.rst') as f: setup( name='twistedchecker', description='A Twisted coding standard compliance checker.', - version='16.0', + version='0.7.1', author='Twisted Matrix Laborato...
Previous version bump was too large, bump to <I>
py
diff --git a/insights/parsers/blkid.py b/insights/parsers/blkid.py index <HASH>..<HASH> 100644 --- a/insights/parsers/blkid.py +++ b/insights/parsers/blkid.py @@ -74,4 +74,4 @@ class BlockIDInfo(CommandParser): def filter_by_type(self, fs_type): """list: Returns a list of all entries where TYPE = ``fs_t...
Fix KeyError in parser blkid (#<I>)
py
diff --git a/panphon/featuretable.py b/panphon/featuretable.py index <HASH>..<HASH> 100644 --- a/panphon/featuretable.py +++ b/panphon/featuretable.py @@ -38,7 +38,7 @@ class FeatureTable(object): header = next(reader) names = header[1:] for row in reader: - ipa = r...
Charged unicode normalization of ipa_segs
py
diff --git a/num2words/lang_PT_BR.py b/num2words/lang_PT_BR.py index <HASH>..<HASH> 100644 --- a/num2words/lang_PT_BR.py +++ b/num2words/lang_PT_BR.py @@ -53,8 +53,6 @@ class Num2Word_PT_BR(lang_PT.Num2Word_PT): ctext = "cento" if nnum < cnum: - if cnum < 100: - return ...
Remove dupplicated line in lang_PT_BR Remove an unnecessary condition, since the very same action follows it.
py
diff --git a/vcr/config.py b/vcr/config.py index <HASH>..<HASH> 100644 --- a/vcr/config.py +++ b/vcr/config.py @@ -67,10 +67,11 @@ class VCR(object): try: serializer = self.serializers[serializer_name] except KeyError: - print("Serializer {0} doesn't exist or isn't registered"....
Raise KeyError with message instead of print, just like in get_matchers below
py
diff --git a/ftpretty.py b/ftpretty.py index <HASH>..<HASH> 100644 --- a/ftpretty.py +++ b/ftpretty.py @@ -166,6 +166,10 @@ class ftpretty(object): """ Return the current working directory """ return self.conn.pwd() + def rename(self, remote_from, remote_to): + """ Rename a file on the ser...
Added `rename` method for moving files on server.
py
diff --git a/tensorflow_probability/python/distributions/categorical_test.py b/tensorflow_probability/python/distributions/categorical_test.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/distributions/categorical_test.py +++ b/tensorflow_probability/python/distributions/categorical_test.py @@ -338,6...
Update categorical_test.py Added test for Entropy when Probability is 0
py
diff --git a/src/com/dtmilano/android/viewclient.py b/src/com/dtmilano/android/viewclient.py index <HASH>..<HASH> 100644 --- a/src/com/dtmilano/android/viewclient.py +++ b/src/com/dtmilano/android/viewclient.py @@ -2604,7 +2604,13 @@ class ViewClient: # If there's only one device connected get its serialno...
Fixing Dump on Windows <I> when adb is used to fetch the serial - On some installations of Windows, ADB will fail to start when the SYSTEMROOT environment variable is not present. Since it is possible that other environment variables are required on different systems, rather than passing an environment containin...
py
diff --git a/mwapi/session.py b/mwapi/session.py index <HASH>..<HASH> 100644 --- a/mwapi/session.py +++ b/mwapi/session.py @@ -241,6 +241,10 @@ class Session: params : Keyword parameters to be sent in the query string. + :Returns: + A response JSON documents (or a gener...
More improvements to Session docs.
py
diff --git a/statik/watcher.py b/statik/watcher.py index <HASH>..<HASH> 100644 --- a/statik/watcher.py +++ b/statik/watcher.py @@ -63,7 +63,7 @@ def watch(project_path, output_path, host='0.0.0.0', port=8000, min_reload_time= # generate once-off before starting the server watcher.generate() - _, config_f...
fixing bug in watcher code with non-standard config file path
py
diff --git a/src/hunter/predicates.py b/src/hunter/predicates.py index <HASH>..<HASH> 100644 --- a/src/hunter/predicates.py +++ b/src/hunter/predicates.py @@ -246,6 +246,9 @@ class And(Fields.predicates): def __invert__(self): return Not(self) + def __hash__(self): + return hash(self.predicate...
If a class that overrides __eq__, and you need __hash__ from a parent class, you have to explicitly set __hash__ = ParentClass.__hash__ 😒
py
diff --git a/sanic_cors/version.py b/sanic_cors/version.py index <HASH>..<HASH> 100644 --- a/sanic_cors/version.py +++ b/sanic_cors/version.py @@ -1 +1 @@ -__version__ = '0.4.1' +__version__ = '0.4.1.2'
Bumped version to trigger travis deployment.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ setup( author_email='f5_common_python@f5.com', url='https://github.com/F5Networks/f5-common-python', keywords=['F5', 'sdk', 'api', 'icontrol', 'bigip', 'api', 'ltm'], - install_requires=['f5-ic...
Update our dependency pin to f5icr <I>
py
diff --git a/programs/angle.py b/programs/angle.py index <HASH>..<HASH> 100755 --- a/programs/angle.py +++ b/programs/angle.py @@ -75,6 +75,8 @@ def main(): print('%7.1f' % (ang)) if out != "": out.write('%7.1f \n' % (ang)) + if out: + out.close() if __name__ == "__main__":
close outfile in angle.py
py
diff --git a/splunklib/client.py b/splunklib/client.py index <HASH>..<HASH> 100644 --- a/splunklib/client.py +++ b/splunklib/client.py @@ -2086,10 +2086,6 @@ class Index(Entity): if source is not None: args['source'] = source if sourcetype is not None: args['sourcetype'] = sourcetype - # The ...
client: remove outdated comment in Index.submit Code is not using request since 8 years :)
py
diff --git a/pysat/instruments/cnofs_ivm.py b/pysat/instruments/cnofs_ivm.py index <HASH>..<HASH> 100644 --- a/pysat/instruments/cnofs_ivm.py +++ b/pysat/instruments/cnofs_ivm.py @@ -31,8 +31,8 @@ import pandas as pds import numpy as np import pysat -from spacepy import pycdf -import pysatCDF + + #import cdf de...
Support for pysatCDF
py
diff --git a/mtools/mlaunch/mlaunch.py b/mtools/mlaunch/mlaunch.py index <HASH>..<HASH> 100755 --- a/mtools/mlaunch/mlaunch.py +++ b/mtools/mlaunch/mlaunch.py @@ -11,7 +11,10 @@ import re from mtools.util.cmdlinetool import BaseCmdLineTool try: - from pymongo import Connection + try: + from pymongo imp...
made pymongo MongoClient import back/forward compatible. closes #<I>.
py
diff --git a/samples/ReadWriteFileServer.py b/samples/ReadWriteFileServer.py index <HASH>..<HASH> 100755 --- a/samples/ReadWriteFileServer.py +++ b/samples/ReadWriteFileServer.py @@ -24,6 +24,11 @@ from bacpypes.basetypes import ServicesSupported _debug = 0 _log = ModuleLogger(globals()) +# configuration +RECORD_LE...
adjstable record length, number of records, and stream size
py
diff --git a/yt_array.py b/yt_array.py index <HASH>..<HASH> 100644 --- a/yt_array.py +++ b/yt_array.py @@ -847,7 +847,7 @@ class YTArray(np.ndarray): @return_arr def prod(self, axis=None, dtype=None, out=None): - if axis: + if axis is not None: units = self.units**self.shape[axis]...
Fixing a big bug in the prod function. Truthiness hurts. --HG-- branch : yt-<I>
py
diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py index <HASH>..<HASH> 100644 --- a/pyrogram/session/session.py +++ b/pyrogram/session/session.py @@ -259,7 +259,7 @@ class Session: msg_id = msg.body.msg_id else: if self.client i...
Use put_nowait instead of put
py
diff --git a/yandextank/plugins/NeUploader/plugin.py b/yandextank/plugins/NeUploader/plugin.py index <HASH>..<HASH> 100644 --- a/yandextank/plugins/NeUploader/plugin.py +++ b/yandextank/plugins/NeUploader/plugin.py @@ -181,6 +181,9 @@ class Plugin(AbstractPlugin, MonitoringDataListener): return {} ...
Fix tags with None for NeUploader
py
diff --git a/tests/test_depparse.py b/tests/test_depparse.py index <HASH>..<HASH> 100644 --- a/tests/test_depparse.py +++ b/tests/test_depparse.py @@ -11,7 +11,7 @@ from tests import * # data for testing EN_DOC = "Barack Obama was born in Hawaii. He was elected president in 2008. Obama attended Harvard." -EN_DOC_...
Rename preanalyzed to pretagged in a test constant
py
diff --git a/flask_featureflags/__init__.py b/flask_featureflags/__init__.py index <HASH>..<HASH> 100644 --- a/flask_featureflags/__init__.py +++ b/flask_featureflags/__init__.py @@ -86,7 +86,12 @@ class FeatureFlag(object): app.config.setdefault(FEATURE_FLAGS_CONFIG, {}) app.config.setdefault(RAISE_ERROR_ON_...
Fixed template test check - apparently that was added in <I>. My bad.
py
diff --git a/satpy/readers/yaml_reader.py b/satpy/readers/yaml_reader.py index <HASH>..<HASH> 100644 --- a/satpy/readers/yaml_reader.py +++ b/satpy/readers/yaml_reader.py @@ -495,12 +495,12 @@ class FileYAMLReader(AbstractYAMLReader): key=lambda fhd: (fhd.start_time, fhd.filename)) # upd...
Update new dataset id methods to better represent what the method does
py
diff --git a/ipyrad/analysis/bpp.py b/ipyrad/analysis/bpp.py index <HASH>..<HASH> 100644 --- a/ipyrad/analysis/bpp.py +++ b/ipyrad/analysis/bpp.py @@ -47,7 +47,7 @@ class Bpp(object): Functions: ---------- - submit_bpp_jobs(): + run(): See documentation string for this function. write_bp...
changed bpp command to run() in analysis tools
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100755 --- a/test.py +++ b/test.py @@ -62,7 +62,8 @@ class CollectorTestCase(unittest.TestCase): if not len(metrics): return False - filePath = os.path.join('docs', 'collectors-' + collector + '.md') + filePath = os.path.join(os.p...
Fix path issues with test.py
py
diff --git a/great_expectations/dataset/pandas_dataset.py b/great_expectations/dataset/pandas_dataset.py index <HASH>..<HASH> 100644 --- a/great_expectations/dataset/pandas_dataset.py +++ b/great_expectations/dataset/pandas_dataset.py @@ -901,12 +901,12 @@ class PandasDataSet(MetaPandasDataSet, pd.DataFrame): ...
Fix #<I> by adding floating point cast and proper default min and max values.
py
diff --git a/lib/stsci/tools/stpyfits.py b/lib/stsci/tools/stpyfits.py index <HASH>..<HASH> 100644 --- a/lib/stsci/tools/stpyfits.py +++ b/lib/stsci/tools/stpyfits.py @@ -155,7 +155,7 @@ class _ConstantValueImageBaseHDU(fits.hdu.image._ImageBaseHDU): if sum(dims) == 0: return None - ...
Updated stpyfits to replace deprecated function NumCode
py
diff --git a/scope/analysis.py b/scope/analysis.py index <HASH>..<HASH> 100644 --- a/scope/analysis.py +++ b/scope/analysis.py @@ -325,7 +325,7 @@ def log_likelihood(theta, model, observations): return (likelihood, blob + [likelihood]) -def solve(observed_spectra, model_filename, initial_guess=None): +def solv...
scope.solve() can take either a model filename or a pre-loaded scope model
py
diff --git a/tabu/package_info.py b/tabu/package_info.py index <HASH>..<HASH> 100644 --- a/tabu/package_info.py +++ b/tabu/package_info.py @@ -14,7 +14,7 @@ __packagename__ = 'dwave-tabu' __title__ = 'D-Wave Tabu' -__version__ = '0.3.1.dev0' +__version__ = '0.3.1' __author__ = 'D-Wave Systems Inc.' __authoremail_...
Release <I> Changes since <I>: Fixes --- - Publish Python <I> wheels for Linux/macOS/Windows
py
diff --git a/fireplace/player.py b/fireplace/player.py index <HASH>..<HASH> 100644 --- a/fireplace/player.py +++ b/fireplace/player.py @@ -40,7 +40,7 @@ class Player(Entity): self.hero = None self.last_card_played = None self.overloaded = 0 - self.max_mana = 0 + self._max_mana = 0 self.playstate = PlaySta...
Set Player._max_mana instead of max_mana on init This avoids odd "Player is now at 0 mana crystals" messages
py
diff --git a/tabular_predDB/HadoopEngine.py b/tabular_predDB/HadoopEngine.py index <HASH>..<HASH> 100644 --- a/tabular_predDB/HadoopEngine.py +++ b/tabular_predDB/HadoopEngine.py @@ -139,7 +139,7 @@ class HadoopEngine(object): SEEDS) os.system('cp %s analyze_input' % input_filen...
BUGFIX: resolve NameError by prepending self to send_hadoop_command
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -177,13 +177,35 @@ execfile('astromodels/version.py') def setup_xspec(): + headas_root = os.environ.get("HEADAS") if headas_root is None: - print("No HEADAS env. variable set. Xspec support will not b...
Now check for the presence of the xspec-modelsonly package in Conda and compile Xspec support if present
py
diff --git a/txaws/ec2/client.py b/txaws/ec2/client.py index <HASH>..<HASH> 100644 --- a/txaws/ec2/client.py +++ b/txaws/ec2/client.py @@ -797,8 +797,6 @@ class Query(BaseQuery): result = "%s\n%s\n%s\n%s" % (self.endpoint.method, self.endpoint.host, self.endpoint.path, ...
Remove debugging [trivial]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,22 +17,6 @@ import sys from setuptools import setup, find_packages -mainscript = "pylon/main.py" - -if sys.platform == "darwin": - extra_opts = {"app": [mainscript], - "setup_requires": ["py2app"], ...
Removing py2exe and py2app dependencies.
py
diff --git a/WrightTools/artists.py b/WrightTools/artists.py index <HASH>..<HASH> 100644 --- a/WrightTools/artists.py +++ b/WrightTools/artists.py @@ -1901,7 +1901,7 @@ class mpl_2D: output_folder : str (optional) Output folder. fname : str (optional) - File name. + ...
fix undesirable fname behavior in mpl_2D (resolves #<I>)
py
diff --git a/qa_tests/risk/__init__.py b/qa_tests/risk/__init__.py index <HASH>..<HASH> 100644 --- a/qa_tests/risk/__init__.py +++ b/qa_tests/risk/__init__.py @@ -213,6 +213,9 @@ class CompleteTestCase(object): print "Problems with output %s" % str(data_hash) raise + # remove ...
Removed temporary directory at the end of qatest_1 Former-commit-id: 6bd<I>a<I>cc7b<I>f0b<I>c0ca9dcfc<I>fb9b7b<I>
py
diff --git a/usgs/api.py b/usgs/api.py index <HASH>..<HASH> 100644 --- a/usgs/api.py +++ b/usgs/api.py @@ -146,9 +146,6 @@ def login(username, password): xml = soap.login(username, password) r = requests.post(USGS_API, xml) - if r.status_code != 200: - raise USGSConnectionError - root...
do not check response code. check response structure instread
py
diff --git a/spyder/plugins/variableexplorer/widgets/dataframeeditor.py b/spyder/plugins/variableexplorer/widgets/dataframeeditor.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/variableexplorer/widgets/dataframeeditor.py +++ b/spyder/plugins/variableexplorer/widgets/dataframeeditor.py @@ -594,7 +594,9 @@ class Dat...
Variable Explorer: Copy index and headers
py
diff --git a/harpoon/ship/runner.py b/harpoon/ship/runner.py index <HASH>..<HASH> 100644 --- a/harpoon/ship/runner.py +++ b/harpoon/ship/runner.py @@ -410,13 +410,8 @@ class Runner(object): break except socket.timeout: break - except ValueError: ...
Doesn't matter if we couldn't remove the image
py
diff --git a/gns3server/modules/dynamips/dynamips_hypervisor.py b/gns3server/modules/dynamips/dynamips_hypervisor.py index <HASH>..<HASH> 100644 --- a/gns3server/modules/dynamips/dynamips_hypervisor.py +++ b/gns3server/modules/dynamips/dynamips_hypervisor.py @@ -136,8 +136,9 @@ class DynamipsHypervisor: except...
Fix crash if we call stop on dynamips on non started process Fix #<I>
py
diff --git a/falafel/mappers/ntp_conf.py b/falafel/mappers/ntp_conf.py index <HASH>..<HASH> 100644 --- a/falafel/mappers/ntp_conf.py +++ b/falafel/mappers/ntp_conf.py @@ -25,25 +25,21 @@ class NTP_conf(Mapper): # Some keywords appear bare - just record them if ' ' not in line: ...
Simplify structure and remove extra processing
py
diff --git a/invocations/packaging.py b/invocations/packaging.py index <HASH>..<HASH> 100644 --- a/invocations/packaging.py +++ b/invocations/packaging.py @@ -325,12 +325,16 @@ def publish(c, sdist=True, wheel=False, index=None, sign=False, dry_run=False, want to distribute for both interpreter versions. ...
Tweak docstrings re: packaging tasks.
py
diff --git a/anpy/dossier.py b/anpy/dossier.py index <HASH>..<HASH> 100644 --- a/anpy/dossier.py +++ b/anpy/dossier.py @@ -229,10 +229,10 @@ class DossierNode(BaseNode): class LegislativeStepNode(BaseNode): steps_re = { LegislativeStepType.AN_PREMIERE_LECTURE: - re.compile('^assemblée national...
be more liberal for legislative step detection Looks like an update of one of the dependencies, maybe the parser (html5lib), changed the output of `item.text` for this special case. It should fix the travis build.
py