diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/log.py b/log.py index <HASH>..<HASH> 100644 --- a/log.py +++ b/log.py @@ -31,7 +31,10 @@ class Log: # emulate backslashreplace error handler encoding = stream.encoding msg = msg.encode(encoding, "backslashreplace").decode(encoding) - stream.writ...
bpo-<I> avoid unicode error in distutils logging (GH-<I>) This caused installation errors in some cases on Windows. Patch by Julien Malard.
py
diff --git a/gdspy/path.py b/gdspy/path.py index <HASH>..<HASH> 100644 --- a/gdspy/path.py +++ b/gdspy/path.py @@ -538,9 +538,11 @@ class FlexPath(object): self.n = 1 self.offsets = [offset] self.widths = [width] * self.n + self.points = numpy.array(points) + ...
Accept single point for FlexPath initialization #<I>
py
diff --git a/pyramid_skosprovider/views.py b/pyramid_skosprovider/views.py index <HASH>..<HASH> 100644 --- a/pyramid_skosprovider/views.py +++ b/pyramid_skosprovider/views.py @@ -86,11 +86,9 @@ class ProviderView(RestView): #Result sorting if sort: - sort_desc = False - if sort...
Slightly different way of handling spaces in sort param. Refs #5.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -72,7 +72,7 @@ setup( '': ['*.txt', '*.md', '*.rst', '*.json', '*.conf', '*.html', '*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL', '*.sovrin']}, include_package_data=True, - install_requires=['sov...
Updated sovrin-common-dev dependency.
py
diff --git a/bokeh/server/serverbb.py b/bokeh/server/serverbb.py index <HASH>..<HASH> 100644 --- a/bokeh/server/serverbb.py +++ b/bokeh/server/serverbb.py @@ -60,6 +60,7 @@ class ContinuumModelsStorage(object): return result def add(self, model, retries=10): + model.set('created', True) ...
setting created inside serverbb, instead of inside views
py
diff --git a/keyboard/__init__.py b/keyboard/__init__.py index <HASH>..<HASH> 100644 --- a/keyboard/__init__.py +++ b/keyboard/__init__.py @@ -94,7 +94,7 @@ def matches(event, name): or 'right ' + normalized == event.name ) - return matched_name or _os_keyboard.map_char(name) == event.scan_code + ...
Fix bug that caused 'matches' to ignore scan codes
py
diff --git a/geomdl/fitting.py b/geomdl/fitting.py index <HASH>..<HASH> 100644 --- a/geomdl/fitting.py +++ b/geomdl/fitting.py @@ -235,22 +235,16 @@ def compute_knot_vector(degree, num_points, params): :return: knot vector :rtype: list """ - # Number of start and end knots - m_ends = degree + 1 - ...
Fix errors in compute_knot_vector
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -65,7 +65,7 @@ setuptools.setup( "build_ext": BuildExtension, "test": Test }, - description="", + description="An open source image processing library", ext_modules=Cython.Build.cythonize([ ...
Update setup.py Adding `description`
py
diff --git a/polyaxon/scheduler/spawners/templates/pod_manager.py b/polyaxon/scheduler/spawners/templates/pod_manager.py index <HASH>..<HASH> 100644 --- a/polyaxon/scheduler/spawners/templates/pod_manager.py +++ b/polyaxon/scheduler/spawners/templates/pod_manager.py @@ -194,7 +194,7 @@ class BasePodManager(object): ...
Fix pod manager condition on init container
py
diff --git a/osuapi/model.py b/osuapi/model.py index <HASH>..<HASH> 100644 --- a/osuapi/model.py +++ b/osuapi/model.py @@ -159,6 +159,7 @@ class SoloScore(Score): beatmap_id = Attribute(int) pp = Attribute(Nullable(float)) enabled_mods = Attribute(PreProcessInt(OsuMod)) + score_id = Attribute(int) ...
SoloScore now also has score_id
py
diff --git a/distutils/command/install.py b/distutils/command/install.py index <HASH>..<HASH> 100644 --- a/distutils/command/install.py +++ b/distutils/command/install.py @@ -406,7 +406,7 @@ class install(Command): def _load_schemes(self): """ - Allow sysconfig and runtime behaviors to alter sche...
Remove special casing for Debian. Instead, Debian should make sure the schemes are updated in sysconfig.
py
diff --git a/MAVProxy/tools/MAVExplorer.py b/MAVProxy/tools/MAVExplorer.py index <HASH>..<HASH> 100755 --- a/MAVProxy/tools/MAVExplorer.py +++ b/MAVProxy/tools/MAVExplorer.py @@ -775,8 +775,8 @@ def extract_files(): if m is None: break if not m.FileName in ret: - ret[m.FileName...
MAVExplorer: allow binary files in FILE
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,11 @@ coffee_files = [ 'struct.coffee', 'class.coffee', 'namespace.coffee', - 'typedef.coffee' + 'typedef.coffee', + 'variable.coffee', + 'function.coffee', + 'field.coffee', + 'const...
Added missing coffee files to setup.py
py
diff --git a/tests/test_meshes.py b/tests/test_meshes.py index <HASH>..<HASH> 100644 --- a/tests/test_meshes.py +++ b/tests/test_meshes.py @@ -82,12 +82,12 @@ def test_mesh_can_draw(): assert not mesh.vbos assert not mesh.vao - with pytest.raises(UnboundLocalError): - mesh.draw() +# with pytes...
stopping draw tests These tests are involved in the segfaults we're getting with Travis.
py
diff --git a/edisgo/data/import_data.py b/edisgo/data/import_data.py index <HASH>..<HASH> 100644 --- a/edisgo/data/import_data.py +++ b/edisgo/data/import_data.py @@ -102,6 +102,16 @@ def import_from_ding0(file, network): # Set more params network._id = network.mv_grid.id + # Update the weather_cell_ids ...
Fixed weather cell id list for mv_grid Added the weather cell ids in the lv_grids into the list of weather cell ids in the mv_grid. It makes it easier to use this list to catch the correct feedin time series from oedb
py
diff --git a/freshen/noseplugin.py b/freshen/noseplugin.py index <HASH>..<HASH> 100644 --- a/freshen/noseplugin.py +++ b/freshen/noseplugin.py @@ -55,7 +55,8 @@ class ParseFailure(Failure): def __init__(self, parse_exception, tb, filename): self.parse_exception = parse_exception self.filename = f...
support parse error in PyDev (closes #<I>)
py
diff --git a/textract/parsers/tesseract.py b/textract/parsers/tesseract.py index <HASH>..<HASH> 100644 --- a/textract/parsers/tesseract.py +++ b/textract/parsers/tesseract.py @@ -6,7 +6,7 @@ def extract(filename, **kwargs): # Tesseract can't output to console directly so you must first create # a dummy file t...
apparently tesseract <I> supports stdout!
py
diff --git a/km3pipe/tests/test_dataclasses.py b/km3pipe/tests/test_dataclasses.py index <HASH>..<HASH> 100644 --- a/km3pipe/tests/test_dataclasses.py +++ b/km3pipe/tests/test_dataclasses.py @@ -642,6 +642,22 @@ class TestTableFancyAttributes(TestCase): 'dir_z': [7, 8, 9]}) assert np.allc...
Add explicit tests for pos/dir setter
py
diff --git a/model_utils/managers.py b/model_utils/managers.py index <HASH>..<HASH> 100644 --- a/model_utils/managers.py +++ b/model_utils/managers.py @@ -247,7 +247,7 @@ class QueryManager(QueryManagerMixin, models.Manager): pass -class SoftDeletableQuerySet(QuerySet): +class SoftDeletableQuerySetMixin(object...
Split SoftDeletableQuerySet/Manager into Mixin
py
diff --git a/examples/simple_threaded_publisher.py b/examples/simple_threaded_publisher.py index <HASH>..<HASH> 100644 --- a/examples/simple_threaded_publisher.py +++ b/examples/simple_threaded_publisher.py @@ -13,7 +13,6 @@ try: def send_messages(connection): start_time = time.time() channel = c...
Removed confirm_delivery from thread publish example.
py
diff --git a/labsuite/labware/deck.py b/labsuite/labware/deck.py index <HASH>..<HASH> 100644 --- a/labsuite/labware/deck.py +++ b/labsuite/labware/deck.py @@ -42,7 +42,7 @@ class Deck(GridContainer): if pos not in self._children: raise KeyError( "No deck module at slot {}/{}." - ...
Deck: Fixed some bitrot on how positions are output.
py
diff --git a/sevenbridges/meta/resource.py b/sevenbridges/meta/resource.py index <HASH>..<HASH> 100644 --- a/sevenbridges/meta/resource.py +++ b/sevenbridges/meta/resource.py @@ -180,9 +180,6 @@ class Resource(six.with_metaclass(ResourceMeta)): """ try: if hasattr(self, 'href'): - ...
Log reloads for models without href as well
py
diff --git a/pluginutils_unit_tests.py b/pluginutils_unit_tests.py index <HASH>..<HASH> 100644 --- a/pluginutils_unit_tests.py +++ b/pluginutils_unit_tests.py @@ -37,12 +37,12 @@ class TestPluginContainer(unittest.TestCase): """ PluginContainer TestSuite. """ - def FIXME_test_plugin_container_wrapping...
pluginutils: fix for failing bibformat test case * Fixes broken test case caused by 'dummy_' variable prefix which made the pluginbuilder's function-signature incompatible with the bibformat elements.
py
diff --git a/eth_utils/currency.py b/eth_utils/currency.py index <HASH>..<HASH> 100644 --- a/eth_utils/currency.py +++ b/eth_utils/currency.py @@ -83,7 +83,7 @@ def to_wei(number, unit): with localcontext() as ctx: multiplier = len(s_number) - s_number.index('.') - 1 ctx.prec = multip...
Fixed issue with spaces (E<I>).
py
diff --git a/snakebite/commandlineparser.py b/snakebite/commandlineparser.py index <HASH>..<HASH> 100644 --- a/snakebite/commandlineparser.py +++ b/snakebite/commandlineparser.py @@ -581,7 +581,7 @@ class CommandLineParser(object): for load in file_to_read: sys.stdout.write(load) - @c...
Disable copyFromLocal and cp. Both copyFromLocal and cp are not implemented in client.
py
diff --git a/salt/runner.py b/salt/runner.py index <HASH>..<HASH> 100644 --- a/salt/runner.py +++ b/salt/runner.py @@ -278,7 +278,7 @@ class Runner(RunnerClient): outputter = None display_output(ret, outputter, self.opts) else: - ret = se...
Call the right function since `_proc_function_local` was removed
py
diff --git a/threat_intel/util/http.py b/threat_intel/util/http.py index <HASH>..<HASH> 100644 --- a/threat_intel/util/http.py +++ b/threat_intel/util/http.py @@ -240,6 +240,17 @@ class MultiRequest(object): return zip(urls, query_params, data) + def _handle_exception(self, request, exception): + ...
Added grequests exception handling method
py
diff --git a/rakuten/apis/travel_api.py b/rakuten/apis/travel_api.py index <HASH>..<HASH> 100644 --- a/rakuten/apis/travel_api.py +++ b/rakuten/apis/travel_api.py @@ -13,7 +13,13 @@ class TravelApi(BaseApi): r = requests.get(url, params=params) if r.status_code == 200: result = r.json() -...
Improve vacant_hotel_search parsing.
py
diff --git a/datacats/cli/pull.py b/datacats/cli/pull.py index <HASH>..<HASH> 100644 --- a/datacats/cli/pull.py +++ b/datacats/cli/pull.py @@ -19,7 +19,8 @@ IMAGES = [ EXTRA_IMAGES = [ 'datacats/lessc', - 'datacats/ckan:latest' + 'datacats/ckan:latest', + 'datacats/ckan:2.3' ]
include datacats/ckan:<I> for completeness
py
diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py index <HASH>..<HASH> 100755 --- a/pythonforandroid/toolchain.py +++ b/pythonforandroid/toolchain.py @@ -1672,7 +1672,7 @@ class Recipe(object): info('Extracting {} at {}'.format(extraction_filename, filename)) ...
Update toolchain.py tar.bz2 unpacking, twisted recipe faults with "OSError: [Errno <I>] Not a directory" fixed
py
diff --git a/safe/definitions/versions.py b/safe/definitions/versions.py index <HASH>..<HASH> 100644 --- a/safe/definitions/versions.py +++ b/safe/definitions/versions.py @@ -8,11 +8,12 @@ __email__ = "info@inasafe.org" __revision__ = '$Format:%H$' # InaSAFE Keyword Version compatibility. -inasafe_keyword_version =...
Updated versions.py keywords compatibility list
py
diff --git a/tests/sign_test.py b/tests/sign_test.py index <HASH>..<HASH> 100644 --- a/tests/sign_test.py +++ b/tests/sign_test.py @@ -26,7 +26,7 @@ from minio.signer import generate_canonical_request, generate_string_to_sign, ge __author__ = 'minio' empty_hash = 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca49...
Changing test to use dceimal rather than octal
py
diff --git a/metpy/plots/station_plot.py b/metpy/plots/station_plot.py index <HASH>..<HASH> 100644 --- a/metpy/plots/station_plot.py +++ b/metpy/plots/station_plot.py @@ -250,6 +250,8 @@ class StationPlot(object): The data to use for the u-component of the barbs. v : array-like The da...
Add unit conversion capability to plot_barbs.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,10 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from setuptools import setup, find_packages import sys +from io import open # Python 2 compatibility + +from setuptools import setup, find_packages from get...
Fix Python 2 issue with setup.py (This is what I get for not following my own rules and testing before push)
py
diff --git a/tests/examples/user_code/worker.py b/tests/examples/user_code/worker.py index <HASH>..<HASH> 100644 --- a/tests/examples/user_code/worker.py +++ b/tests/examples/user_code/worker.py @@ -13,7 +13,7 @@ app.conf.resultrepr_maxsize = 100 * 1024 # to not truncate args and kwargs unti def function_test(self, r...
example supporting to return what I want used to test task without result (None) vs result ''
py
diff --git a/dusty/cli/test.py b/dusty/cli/test.py index <HASH>..<HASH> 100644 --- a/dusty/cli/test.py +++ b/dusty/cli/test.py @@ -2,14 +2,14 @@ If args are passed, default arguments are dropped Usage: - test [options] <app_or_lib_name> [--all] [<suite_name>] [<args>...] + test [options] <app_or_lib_name> [<suite...
standardize on using --all in place of suite_name
py
diff --git a/bcbio/structural/metasv.py b/bcbio/structural/metasv.py index <HASH>..<HASH> 100644 --- a/bcbio/structural/metasv.py +++ b/bcbio/structural/metasv.py @@ -26,9 +26,10 @@ def run(items): "--bam", dd.get_align_bam(data), "--outdir", work_dir] methods = [] for call in data.ge...
Ensured VCF file input for metasv.py is not None.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( url = 'https://github.com/roanuz/py-cricket', package_dir={'': 'src'}, packages=[''], - install_requires=['requests==2.5.1'], + install_requires=['requests>=2.5.1'], entry_points='...
REquest is on permanent feature freeze. API is unlikely to break
py
diff --git a/twittytwister/twitter.py b/twittytwister/twitter.py index <HASH>..<HASH> 100644 --- a/twittytwister/twitter.py +++ b/twittytwister/twitter.py @@ -662,4 +662,21 @@ class TwitterFeed(Twitter): """ return self.filter(delegate, {'track': ','.join(terms)}) + + def user(self, delegate, wit...
First stab at support for User Streams.
py
diff --git a/dispatch/api/validators.py b/dispatch/api/validators.py index <HASH>..<HASH> 100644 --- a/dispatch/api/validators.py +++ b/dispatch/api/validators.py @@ -50,8 +50,13 @@ class SlugValidator(object): raise ValidationError('%s with slug \'%s\' already exists.' % (self.model.__name__, slug)) ...
Update AuthorValidator to support list and single instances
py
diff --git a/docker/client.py b/docker/client.py index <HASH>..<HASH> 100644 --- a/docker/client.py +++ b/docker/client.py @@ -306,8 +306,8 @@ class Client(clientbase.ClientBase): return self._result(res, True) def exec_inspect(self, exec_id): - if utils.compare_version('1.15', self._version) < 0...
Change minimum API version for exec_inspect
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -37,8 +37,10 @@ def get_version(): with open(version_file) as f: return f.read() except: - print("Error: please create a file", version_file, "with the tile-generator version in it.", file=sys.stderr) - raise + ver...
Default version to <I> to enable local builds without creating a version.txt
py
diff --git a/twstock/analytics.py b/twstock/analytics.py index <HASH>..<HASH> 100644 --- a/twstock/analytics.py +++ b/twstock/analytics.py @@ -30,6 +30,7 @@ class LegacyAnalytics(object): :rtype: 序列 舊→新 """ result = [] + data = data[:] for dummy in range(len(data) - int(da...
Fix legacy moving_average affect data problem
py
diff --git a/src/livestreamer/plugins/twitch.py b/src/livestreamer/plugins/twitch.py index <HASH>..<HASH> 100644 --- a/src/livestreamer/plugins/twitch.py +++ b/src/livestreamer/plugins/twitch.py @@ -30,7 +30,7 @@ QUALITY_WEIGHTS = { _url_re = re.compile(r""" http(s)?:// (?: - (?P<subdomain>\w+) + ...
plugins.twitch: Handle subdomains with dash in them, e.g. en-gb. Resolves #<I>.
py
diff --git a/src/ossos-pipeline/ossos/orbfit.py b/src/ossos-pipeline/ossos/orbfit.py index <HASH>..<HASH> 100644 --- a/src/ossos-pipeline/ossos/orbfit.py +++ b/src/ossos-pipeline/ossos/orbfit.py @@ -351,10 +351,10 @@ class Orbfit(object): predict = self.orbfit.predict(ctypes.c_char_p(abg_file.name), ...
Switched to use SkyCoord instead of ICRSCoordinates. astropy 1.X has adopted a generic SkyCoord object that returns the specific type when system is set.
py
diff --git a/tldr.py b/tldr.py index <HASH>..<HASH> 100755 --- a/tldr.py +++ b/tldr.py @@ -414,11 +414,11 @@ def main(): options.language ) if not result: - print(( + sys.exit(( "`{cmd}` documentation is not available. " ...
Exit with exit code 1 when command not found (#<I>)
py
diff --git a/latex2text.py b/latex2text.py index <HASH>..<HASH> 100644 --- a/latex2text.py +++ b/latex2text.py @@ -92,6 +92,8 @@ macro_list = [ ('o', u'\u00f8'), # o norvegien/nordique ('O', u'\u00d8'), # O norvegien/nordique ('ss', u'\u00df'), # s-z allemand + ('L', u"\N{LATIN CAPITAL LETTER L WITH S...
added \l and \L for latex2text
py
diff --git a/stellar_sdk/exceptions.py b/stellar_sdk/exceptions.py index <HASH>..<HASH> 100644 --- a/stellar_sdk/exceptions.py +++ b/stellar_sdk/exceptions.py @@ -131,7 +131,7 @@ class BaseHorizonError(BaseRequestError): self.status: Optional[int] = message.get("status") self.detail: Optional[str] = m...
fix: BaseHorizonError.result_xdr is populated incorrectly in __init__.py (#<I>)
py
diff --git a/blockstack_client/rpc.py b/blockstack_client/rpc.py index <HASH>..<HASH> 100644 --- a/blockstack_client/rpc.py +++ b/blockstack_client/rpc.py @@ -5401,8 +5401,8 @@ def local_api_start( port=None, host=None, config_dir=blockstack_constants.CONFI log.debug("Initializing registrar...") state = backe...
fix error path reference to undeclared variable
py
diff --git a/helpers/postgresql.py b/helpers/postgresql.py index <HASH>..<HASH> 100644 --- a/helpers/postgresql.py +++ b/helpers/postgresql.py @@ -158,14 +158,15 @@ class Postgresql: # that we have to convert to hex and 'prepend' to the high offset digits. lsn_segment = backup_start_segment[8:16] - ...
some arithmetics and type conversion fixes.
py
diff --git a/openquake/baselib/tests/config_test.py b/openquake/baselib/tests/config_test.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/tests/config_test.py +++ b/openquake/baselib/tests/config_test.py @@ -17,6 +17,7 @@ # along with OpenQuake. If not, see <http://www.gnu.org/licenses/>. import os +import ...
Removed an assertion in ConfigPathsTestCase
py
diff --git a/glue/ligolw/ligolw.py b/glue/ligolw/ligolw.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/ligolw.py +++ b/glue/ligolw/ligolw.py @@ -238,7 +238,7 @@ class Element(object): # modifies its internal data. probably not a good idea, # but I don't know how else to edit an attribute because # the stupi...
"correct" a type in Element.setAttribute() in Element.setAttribute(), the value should be stored as a unicode.
py
diff --git a/nbrmd/__init__.py b/nbrmd/__init__.py index <HASH>..<HASH> 100644 --- a/nbrmd/__init__.py +++ b/nbrmd/__init__.py @@ -16,7 +16,7 @@ from .hooks import update_rmd, update_ipynb, \ update_rmd_and_ipynb, update_selected_formats try: - from .nbconvert import RMarkdownExporter + from .rmarkdownexp...
Renamed nbconvert to rmarkdownexporter
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -338,7 +338,7 @@ def create_pipes_ext(patched_src_dir, pipes_ext_name): include_dirs = [ "%s/%s/api" % (patched_src_dir, _) for _ in "pipes", "utils" ] - libraries = ["pthread", BOOST_PYTHON, "ssl"] + libraries ...
removing ssl for all hadoop version
py
diff --git a/examples/custom.py b/examples/custom.py index <HASH>..<HASH> 100644 --- a/examples/custom.py +++ b/examples/custom.py @@ -11,7 +11,11 @@ class MyAstroidChecker(BaseChecker): __implements__ = IAstroidChecker name = 'custom' - msgs = {} + msgs = { + 'W0001': ('Message that will be em...
Add a message in the example checker, since the message is needed.
py
diff --git a/tests/test_i2c.py b/tests/test_i2c.py index <HASH>..<HASH> 100644 --- a/tests/test_i2c.py +++ b/tests/test_i2c.py @@ -54,6 +54,10 @@ def test_interactive(): print("Starting interactive test. Get out your logic analyzer, buddy!") raw_input("Press enter to continue...") + # Check tostring + ...
tests/i2c: add tostring check to interactive test
py
diff --git a/werobot/client.py b/werobot/client.py index <HASH>..<HASH> 100644 --- a/werobot/client.py +++ b/werobot/client.py @@ -518,6 +518,9 @@ class Client(object): del pay_param[oldkey] pay_param[key] = t + # 不转成字符串 ios 会出错 + pay_param = dict([(str(k), str(v)) for k,v in p...
fix sign error in ios
py
diff --git a/pyradio/player.py b/pyradio/player.py index <HASH>..<HASH> 100644 --- a/pyradio/player.py +++ b/pyradio/player.py @@ -7,9 +7,6 @@ from sys import platform logger = logging.getLogger(__name__) -def updateTitle(*arg, **karg): - arg[0].write(arg[1]) - class Player(object): """ Media player class...
implementing threaded title delay when volume changed/saved
py
diff --git a/javalang/test/test_java_8_syntax.py b/javalang/test/test_java_8_syntax.py index <HASH>..<HASH> 100644 --- a/javalang/test/test_java_8_syntax.py +++ b/javalang/test/test_java_8_syntax.py @@ -34,7 +34,7 @@ class LambdaSupportTest(unittest.TestCase): if isinstance(p, tree.MethodDeclaration): ...
set a fail message when no lambda expression is found.
py
diff --git a/automated_ebs_snapshots/snapshot_manager.py b/automated_ebs_snapshots/snapshot_manager.py index <HASH>..<HASH> 100644 --- a/automated_ebs_snapshots/snapshot_manager.py +++ b/automated_ebs_snapshots/snapshot_manager.py @@ -2,6 +2,8 @@ import logging import datetime +from boto.exception import EC2Respons...
Now handling exceptions when deleting snapshots #4
py
diff --git a/h2o-test-integ/tests/s3n/pyunit_s3_bigdata_parsing_large.py b/h2o-test-integ/tests/s3n/pyunit_s3_bigdata_parsing_large.py index <HASH>..<HASH> 100644 --- a/h2o-test-integ/tests/s3n/pyunit_s3_bigdata_parsing_large.py +++ b/h2o-test-integ/tests/s3n/pyunit_s3_bigdata_parsing_large.py @@ -1,5 +1,5 @@ import s...
small fix to pyunit script
py
diff --git a/tests/test_commands.py b/tests/test_commands.py index <HASH>..<HASH> 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -209,10 +209,9 @@ class TestRedisCommands(object): def test_dump_and_restore(self, r): r['a'] = 'foo' dumped = r.dump('a') - assert dumped.s...
Simplify dump and restore test case - works with Python 3.x now.
py
diff --git a/raven/utils/serializer/base.py b/raven/utils/serializer/base.py index <HASH>..<HASH> 100644 --- a/raven/utils/serializer/base.py +++ b/raven/utils/serializer/base.py @@ -9,7 +9,6 @@ raven.utils.serializer.base from __future__ import absolute_import import itertools -import uuid import types from ra...
Remove UUID serializer (same as default behavior) Refs GH-<I>
py
diff --git a/skorch/exceptions.py b/skorch/exceptions.py index <HASH>..<HASH> 100644 --- a/skorch/exceptions.py +++ b/skorch/exceptions.py @@ -1,11 +1,13 @@ """Contains skorch-specific exceptions and warnings.""" +from sklearn.exceptions import NotFittedError + class SkorchException(BaseException): """Base s...
NotInitializedError inherits from NotFittedError (#<I>) This ensures that a user can catch the sklearn `NotFittedError`, just as they can with regular sklearn estimators. As discussed in [1]. [1] <URL>
py
diff --git a/uncompyle6/scanners/tok.py b/uncompyle6/scanners/tok.py index <HASH>..<HASH> 100644 --- a/uncompyle6/scanners/tok.py +++ b/uncompyle6/scanners/tok.py @@ -2,7 +2,7 @@ # Copyright (c) 2000-2002 by hartmut Goebel <h.goebel@crazy-compilers.com> # Copyright (c) 1999 John Aycock -import sys +import re, sys...
Tidy assembly output a little more
py
diff --git a/mib/reflash.py b/mib/reflash.py index <HASH>..<HASH> 100644 --- a/mib/reflash.py +++ b/mib/reflash.py @@ -35,10 +35,10 @@ def build_reflasher(stub, payload, chip): oldret = Instruction('retlw 0') - if stub[start_addr] != Instruction('retlw 0').encode(): + if stub[start_addr] != Instruction('retlw 0xA...
Add marker instructions to idenfity reflashing module This lets mibtool more accurately infer if it's working with a real mib<I>_reflasher and minimizes the chances of an error occuring
py
diff --git a/discord/client.py b/discord/client.py index <HASH>..<HASH> 100644 --- a/discord/client.py +++ b/discord/client.py @@ -521,8 +521,7 @@ class Client: if resp.status == 400: raise LoginFailure('Improper credentials have been passed.') elif resp.status != 200: - data =...
Client.login no longer calls resp.json() aiohttp didn't like it.
py
diff --git a/O365/drive.py b/O365/drive.py index <HASH>..<HASH> 100644 --- a/O365/drive.py +++ b/O365/drive.py @@ -813,7 +813,7 @@ class Folder(DriveItem): url = self.build_url(self._endpoints.get('list_items').format(id=self.object_id)) - data = {'name': name} + data = {'name': name, 'folder...
Drive: Fixed bug on Folder:create_child_folder
py
diff --git a/acos_client/v21/license_manager.py b/acos_client/v21/license_manager.py index <HASH>..<HASH> 100644 --- a/acos_client/v21/license_manager.py +++ b/acos_client/v21/license_manager.py @@ -27,5 +27,6 @@ class LicenseManager(base.BaseV21): def connect(self, connect=False): raise NotImplementedErr...
Removed <I> delete, added update
py
diff --git a/gcloud/datastore/batch.py b/gcloud/datastore/batch.py index <HASH>..<HASH> 100644 --- a/gcloud/datastore/batch.py +++ b/gcloud/datastore/batch.py @@ -12,7 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""Create / interact with a batch ...
Added more expressive module docstring to batch.py
py
diff --git a/skyfield/__init__.py b/skyfield/__init__.py index <HASH>..<HASH> 100644 --- a/skyfield/__init__.py +++ b/skyfield/__init__.py @@ -4,4 +4,5 @@ Most users will use Skyfield by importing ``skyfield.api`` and using the functions and classes there. """ -__version__ = '0.2' +__version_info__ = (0, 2) +__vers...
Experiment with a version-info tuple
py
diff --git a/pyparsing.py b/pyparsing.py index <HASH>..<HASH> 100644 --- a/pyparsing.py +++ b/pyparsing.py @@ -94,7 +94,7 @@ classes inherit from. Use the docstrings for examples of how to: """ __version__ = "2.3.1" -__versionTime__ = "05 Jan 2019 23:47 UTC" +__versionTime__ = "08 Jan 2019 01:25 UTC" __author__ = ...
Fix inconsistency between Keyword(caseless=True) and CaselessKeyword (issue #<I>)
py
diff --git a/SpiffWorkflow/bpmn/PythonScriptEngine.py b/SpiffWorkflow/bpmn/PythonScriptEngine.py index <HASH>..<HASH> 100644 --- a/SpiffWorkflow/bpmn/PythonScriptEngine.py +++ b/SpiffWorkflow/bpmn/PythonScriptEngine.py @@ -268,10 +268,9 @@ class PythonScriptEngine(object): try: exec(script, global...
Slight improvement on error message details.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,9 +19,11 @@ sys.path.insert(0, os.path.abspath("../src/")) autodoc_mock_imports = [ "bs4", + "cloudpickle", "editdistance", "emmental", "lxml", + "mlflow", "numpy", "p...
Mock imports of "cloudpickle" and "mlflow"
py
diff --git a/PlugIns/EELSAcq_Phil/PlugIn.py b/PlugIns/EELSAcq_Phil/PlugIn.py index <HASH>..<HASH> 100644 --- a/PlugIns/EELSAcq_Phil/PlugIn.py +++ b/PlugIns/EELSAcq_Phil/PlugIn.py @@ -133,7 +133,14 @@ class AcquireController(object): def show_in_panel(data_item, document_controller, image_panel_id): ...
Fix problem of missing 'find image panel' method. Was svn r<I>
py
diff --git a/arangodb/tests.py b/arangodb/tests.py index <HASH>..<HASH> 100644 --- a/arangodb/tests.py +++ b/arangodb/tests.py @@ -1,7 +1,8 @@ import unittest +import datetime from arangodb.api import Client, Database, Collection, Document -from arangodb.orm.fields import CharField, ForeignKeyField, NumberField +fr...
Test creation of a datetime field with default value
py
diff --git a/ford/sourceform.py b/ford/sourceform.py index <HASH>..<HASH> 100644 --- a/ford/sourceform.py +++ b/ford/sourceform.py @@ -1026,18 +1026,20 @@ class FortranVariable(FortranBase): self.dimension = '' self.meta = {} + indexlist = [] indexparen = self.name.find('(') ...
Now recognizes codimensions in variable declarations.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ except ImportError: setup( name='eventsourcing', - version='1.0.11', + version='1.1.0', description='Event sourcing in Python', author='John Bywater', author_email='john.bywater@approp...
Increased minor version number. Minor version number change follows from addition of new optimistic concurrency control features, performance improvements, and the fact that an 'entity version' table has been added to the stored event repo database schema.
py
diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index <HASH>..<HASH> 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -133,7 +133,7 @@ class Message(Object, Update): Signature of the post...
Fix type of "has_protected_content" (#<I>) `has_protected_content` attribute of Message class was assigned the wrong type in the docstring (str), corrected it to `bool`
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ setup( data_files=[( (BASE_DIR, ['data/nssm_original.exe']) )], - install_requires=['indy-plenum-dev==1.2.205', + install_requires=['indy-plenum-dev==1.2.212', 'in...
INDY-<I>: Updated indy-plenum dependency (#<I>)
py
diff --git a/django_dev/dev.py b/django_dev/dev.py index <HASH>..<HASH> 100644 --- a/django_dev/dev.py +++ b/django_dev/dev.py @@ -50,6 +50,8 @@ if __name__ == '__main__': 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'django.contrib.sites', + ...
Flatpages and sites contribs add to INSTALLED_APPS.
py
diff --git a/dwave/cloud/cli.py b/dwave/cloud/cli.py index <HASH>..<HASH> 100644 --- a/dwave/cloud/cli.py +++ b/dwave/cloud/cli.py @@ -252,7 +252,9 @@ def ping(config_file, profile, json_output): type=click.Path(exists=True, dir_okay=False), help='Configuration file path') @click.option('--profile', '-p...
CLI: add --list option to 'dwave solvers'
py
diff --git a/elifetools/parseJATS.py b/elifetools/parseJATS.py index <HASH>..<HASH> 100644 --- a/elifetools/parseJATS.py +++ b/elifetools/parseJATS.py @@ -2397,7 +2397,7 @@ def body_block_content(tag, html_flag=True, base_url=None): set_if_value(tag_content, "id", tag.get("id")) set_if_value(tag_conte...
Change if to elif for related-object tag matching.
py
diff --git a/__init__.py b/__init__.py index <HASH>..<HASH> 100644 --- a/__init__.py +++ b/__init__.py @@ -219,7 +219,7 @@ class Firefox: glob.glob(os.path.join(os.environ.get('PROGRAMFILES(X86)', ''), 'Mozilla Firefox/profile/cookies.sqlite...
Fix Firefox win<I> folder naming conventions .default may be followed by additional characters. This correctly locates profile folder.
py
diff --git a/tests/test_upload.py b/tests/test_upload.py index <HASH>..<HASH> 100644 --- a/tests/test_upload.py +++ b/tests/test_upload.py @@ -288,12 +288,15 @@ def test_values_from_env(monkeypatch): assert "/foo/bar.crt" == upload_settings.cacert -def test_check_status_code_for_wrong_repo_url(make_settings, c...
Add pytest.mark.parametrize to try both upload.pypi and test.pypi as repository URLs
py
diff --git a/salt/modules/virt.py b/salt/modules/virt.py index <HASH>..<HASH> 100644 --- a/salt/modules/virt.py +++ b/salt/modules/virt.py @@ -211,12 +211,12 @@ def _prepare_serial_port_xml(serial_type='pty', telnet_port='', console=True, ** Returns string representing the serial and console devices suitable for ...
Easier to ask for forgiveness than permission (EAFP)
py
diff --git a/pyinfra/modules/mysql.py b/pyinfra/modules/mysql.py index <HASH>..<HASH> 100644 --- a/pyinfra/modules/mysql.py +++ b/pyinfra/modules/mysql.py @@ -342,6 +342,7 @@ def dump( Example: .. code:: python + mysql.dump( {'Dump the pyinfra_stuff database'}, '/tmp/pyinf...
Fix missing newline in rst docstring.
py
diff --git a/airtest/utils/logger.py b/airtest/utils/logger.py index <HASH>..<HASH> 100644 --- a/airtest/utils/logger.py +++ b/airtest/utils/logger.py @@ -20,5 +20,4 @@ init_logging() def get_logger(name): logger = logging.getLogger(name) - logger.setLevel(logging.DEBUG) return logger
no reset logger level on every get_logger invocation.
py
diff --git a/moto/iam/responses.py b/moto/iam/responses.py index <HASH>..<HASH> 100644 --- a/moto/iam/responses.py +++ b/moto/iam/responses.py @@ -407,7 +407,7 @@ class IamResponse(BaseResponse): return template.render( user_name=user_name, policy_name=policy_name, - policy...
fixes wrong IAM get_user_policy() response
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ classifiers = [ 'Topic :: Utilities', ] -long_description = open('README').read() +long_description = open('README').read() + '\n' + open('Changelog').read() setup(name='cgroup-utils', version=...
Append Changelog to README for PyPI
py
diff --git a/pypsa/plot.py b/pypsa/plot.py index <HASH>..<HASH> 100644 --- a/pypsa/plot.py +++ b/pypsa/plot.py @@ -142,7 +142,7 @@ def plot(network, margin=0.05, ax=None, basemap=True, bus_colors='b', if isinstance(bus_sizes, pd.Series) and isinstance(bus_sizes.index, pd.MultiIndex): # We are drawing pi...
plot: Fix pie plotting with multi-sector networks
py
diff --git a/soco/data_structures.py b/soco/data_structures.py index <HASH>..<HASH> 100644 --- a/soco/data_structures.py +++ b/soco/data_structures.py @@ -598,7 +598,7 @@ class DidlAudioItem(DidlItem): """An audio item.""" - item_class = 'object.item.audioitem' + item_class = 'object.item.audioItem' ...
Fix capitalization of object.item.audioItem
py
diff --git a/countries_plus/management/commands/update_countries_plus.py b/countries_plus/management/commands/update_countries_plus.py index <HASH>..<HASH> 100644 --- a/countries_plus/management/commands/update_countries_plus.py +++ b/countries_plus/management/commands/update_countries_plus.py @@ -1,12 +1,13 @@ -from d...
update_countries_plus: use self.stdout.write Using the `print` keyword does not work for Python 3, and management commands seem to use `self.stdout.write`.
py
diff --git a/luigi/lock.py b/luigi/lock.py index <HASH>..<HASH> 100644 --- a/luigi/lock.py +++ b/luigi/lock.py @@ -62,7 +62,7 @@ def getpcmd(pid): # worked. See the pull request at # https://github.com/spotify/luigi/pull/1876 try: - with open('/proc/{0}/cmdline'.format(pid), 'r') a...
Fix decode to utf8 when reading /proc/*/cmdline
py
diff --git a/GDAX/WebsocketClient.py b/GDAX/WebsocketClient.py index <HASH>..<HASH> 100644 --- a/GDAX/WebsocketClient.py +++ b/GDAX/WebsocketClient.py @@ -102,10 +102,6 @@ if __name__ == "__main__": print(wsClient.url, wsClient.products) # Do some logic with the data while (wsClient.MessageCount < 500): ...
Cleared conflict with WebsocketClient
py
diff --git a/grappa/operators/contain.py b/grappa/operators/contain.py index <HASH>..<HASH> 100644 --- a/grappa/operators/contain.py +++ b/grappa/operators/contain.py @@ -1,6 +1,8 @@ # -*- coding: utf-8 -*- +from array import array from six.moves import collections_abc import six + from ..operator import Operator ...
contain now supports dicts and arrays. Partially fix #<I>
py
diff --git a/salt/states/pip_state.py b/salt/states/pip_state.py index <HASH>..<HASH> 100644 --- a/salt/states/pip_state.py +++ b/salt/states/pip_state.py @@ -57,13 +57,6 @@ if HAS_PIP is True: # pylint: enable=import-error - ver = pip.__version__.split('.') - pip_ver = tuple([int(x) for x in ver if x.isdigi...
Remove duplicated code. This check exists twice in the code. Once is good enough for anyone.
py
diff --git a/reference/_generate.py b/reference/_generate.py index <HASH>..<HASH> 100755 --- a/reference/_generate.py +++ b/reference/_generate.py @@ -65,7 +65,8 @@ def walk_contexts(name="globus", cmd=CLI, parent_ctx=None): """ current_ctx = click.Context(cmd, info_name=name, parent=parent_ctx) cmds, gr...
Fix reference generator to handle lazy subcommands (#<I>) The reference doc generator script was crawling `Group.commands` instead of using `Group.list_commands` and `Group.get_command`. As a result, it did not process lazy imported subcommands correctly. Also fix a typo in the synopsis format string.
py
diff --git a/schema_salad/ref_resolver.py b/schema_salad/ref_resolver.py index <HASH>..<HASH> 100644 --- a/schema_salad/ref_resolver.py +++ b/schema_salad/ref_resolver.py @@ -581,7 +581,7 @@ class Loader(object): document[idmapField] = ls - typeDSLregex = re.compile(ur"^([^[?]+)(\[\])?(\?)?$...
fix: make regex command python3 compatible
py
diff --git a/pyfrc/mains/cli_undeploy.py b/pyfrc/mains/cli_undeploy.py index <HASH>..<HASH> 100644 --- a/pyfrc/mains/cli_undeploy.py +++ b/pyfrc/mains/cli_undeploy.py @@ -41,6 +41,9 @@ class PyFrcUndeploy: robot_path = dirname(robot_file) cfg_filename = join(robot_path, ".deploy_cfg") + if no...
Warn user about undeploy, and stop the code first
py